/*
 * This is a RANDOMLY GENERATED PROGRAM.
 *
 * Generator: csmith 2.4.0
 * Git version: 8b4af0a
 * Options:   --bitfields --packed-struct --output test1750.c
 * Seed:      4192706338646832737
 */

#include "csmith.h"


static long __undefined;

/* --- Struct/Union Declarations --- */
struct S0 {
   volatile uint32_t  f0;
   const volatile int8_t  f1;
};

#pragma pack(push)
#pragma pack(1)
struct S1 {
   unsigned f0 : 13;
   unsigned f1 : 17;
   unsigned f2 : 6;
};
#pragma pack(pop)

/* --- GLOBAL VARIABLES --- */
static int32_t g_3 = 0x836CCB03L;
static int64_t g_5 = (-1L);
static uint64_t g_8 = 8UL;
static int32_t g_61 = 0L;
static int32_t *g_65 = &g_61;
static int32_t ** volatile g_64 = &g_65;/* VOLATILE GLOBAL g_64 */
static int32_t ** volatile * volatile g_66[4][5] = {{&g_64,&g_64,&g_64,&g_64,&g_64},{&g_64,&g_64,&g_64,&g_64,&g_64},{&g_64,&g_64,&g_64,&g_64,&g_64},{&g_64,&g_64,&g_64,&g_64,&g_64}};
static int32_t g_78 = 0x1B2F0819L;
static int32_t * volatile g_77[2][3][6] = {{{&g_78,&g_78,&g_78,&g_78,&g_78,&g_78},{&g_78,&g_78,&g_78,&g_78,&g_78,&g_78},{&g_78,&g_78,&g_78,&g_78,&g_78,&g_78}},{{&g_78,&g_78,&g_78,&g_78,&g_78,&g_78},{&g_78,&g_78,&g_78,&g_78,&g_78,&g_78},{&g_78,&g_78,&g_78,&g_78,&g_78,&g_78}}};
static uint8_t g_125 = 0xD3L;
static int32_t **g_134 = &g_65;
static int32_t ***g_133 = &g_134;
static int32_t ****g_132 = &g_133;
static int32_t ***** volatile g_131 = &g_132;/* VOLATILE GLOBAL g_131 */
static const volatile struct S0 g_139 = {0xDAFEA221L,1L};/* VOLATILE GLOBAL g_139 */
static struct S1 g_141 = {44,35,6};
static uint8_t g_144 = 255UL;
static uint32_t g_180 = 0x37F1ACA1L;
static volatile struct S0 g_190 = {0xE832C571L,0xA3L};/* VOLATILE GLOBAL g_190 */
static uint32_t g_202 = 18446744073709551612UL;
static const int32_t *g_210[3][5] = {{&g_3,&g_3,&g_3,&g_3,&g_3},{&g_78,(void*)0,&g_78,(void*)0,&g_78},{&g_3,&g_3,&g_3,&g_3,&g_3}};
static const int32_t **g_209 = &g_210[0][1];
static uint64_t g_217 = 0UL;
static int32_t * volatile g_233 = &g_78;/* VOLATILE GLOBAL g_233 */
static int32_t *g_268 = &g_3;
static int32_t **g_267 = &g_268;
static int32_t * volatile g_276 = &g_3;/* VOLATILE GLOBAL g_276 */
static uint32_t g_306[9] = {0x0D8ED367L,0x708EF66FL,0x0D8ED367L,0x708EF66FL,0x0D8ED367L,0x708EF66FL,0x0D8ED367L,0x708EF66FL,0x0D8ED367L};
static int32_t g_311 = 0xD05CFE5EL;
static int32_t g_313 = 0xBB143979L;
static int32_t * volatile g_312 = &g_313;/* VOLATILE GLOBAL g_312 */
static struct S1 * volatile g_323 = &g_141;/* VOLATILE GLOBAL g_323 */
static volatile struct S0 *g_327 = &g_190;
static volatile struct S0 ** volatile g_326 = &g_327;/* VOLATILE GLOBAL g_326 */
static volatile struct S0 ** volatile * volatile g_328 = &g_326;/* VOLATILE GLOBAL g_328 */
static struct S0 g_368 = {0x9FF2AFA1L,0x45L};/* VOLATILE GLOBAL g_368 */
static struct S0 g_374[5][8] = {{{18446744073709551615UL,0x07L},{0x0C252F89L,0xC8L},{1UL,0xE6L},{9UL,8L},{9UL,8L},{1UL,0xE6L},{0x0C252F89L,0xC8L},{18446744073709551615UL,0x07L}},{{0x0C252F89L,0xC8L},{6UL,0L},{18446744073709551615UL,0x07L},{18446744073709551612UL,0x8DL},{18446744073709551615UL,0x07L},{6UL,0L},{0x0C252F89L,0xC8L},{0x0C252F89L,0xC8L}},{{6UL,0L},{18446744073709551612UL,0x8DL},{1UL,0xE6L},{1UL,0xE6L},{18446744073709551612UL,0x8DL},{6UL,0L},{9UL,8L},{6UL,0L}},{{18446744073709551612UL,0x8DL},{6UL,0L},{9UL,8L},{6UL,0L},{18446744073709551612UL,0x8DL},{1UL,0xE6L},{1UL,0xE6L},{18446744073709551612UL,0x8DL}},{{6UL,0L},{0x0C252F89L,0xC8L},{0x0C252F89L,0xC8L},{6UL,0L},{18446744073709551615UL,0x07L},{18446744073709551612UL,0x8DL},{18446744073709551615UL,0x07L},{6UL,0L}}};
static int8_t g_431[9][6] = {{0L,(-1L),0L,0L,(-1L),0L},{0L,(-1L),0L,0L,(-1L),0L},{0L,(-1L),0L,0L,(-1L),0L},{0L,(-1L),0L,0L,(-1L),0L},{0L,(-1L),0L,0L,(-1L),0L},{0L,(-1L),0L,0L,(-1L),0L},{0L,(-1L),0L,0L,(-1L),0L},{0L,(-1L),0L,0L,(-1L),0L},{0L,(-1L),0L,0L,(-1L),0L}};
static struct S0 ** volatile g_433 = (void*)0;/* VOLATILE GLOBAL g_433 */
static struct S0 g_436 = {0xC51C6695L,5L};/* VOLATILE GLOBAL g_436 */
static volatile int16_t g_504 = (-2L);/* VOLATILE GLOBAL g_504 */
static volatile int16_t * volatile g_503 = &g_504;/* VOLATILE GLOBAL g_503 */
static volatile uint8_t g_545[6] = {9UL,0x5EL,9UL,9UL,0x5EL,9UL};
static int16_t *g_555 = (void*)0;
static uint8_t g_604 = 0x50L;
static volatile struct S0 g_623 = {0x12D665AAL,0x56L};/* VOLATILE GLOBAL g_623 */
static int32_t g_628 = 0L;
static struct S0 g_649 = {0UL,0xBBL};/* VOLATILE GLOBAL g_649 */
static int32_t * volatile g_652[6][2] = {{&g_3,&g_3},{&g_3,&g_3},{&g_3,&g_3},{&g_3,&g_3},{&g_3,&g_3},{&g_3,&g_3}};
static int32_t * volatile g_653 = &g_78;/* VOLATILE GLOBAL g_653 */
static int32_t g_683 = 3L;
static int32_t * volatile g_690 = &g_683;/* VOLATILE GLOBAL g_690 */
static uint16_t g_760[8][2] = {{7UL,7UL},{7UL,7UL},{7UL,7UL},{7UL,7UL},{7UL,7UL},{7UL,7UL},{7UL,7UL},{7UL,7UL}};
static struct S0 g_764 = {0UL,0x56L};/* VOLATILE GLOBAL g_764 */
static uint16_t g_768[1] = {0xB426L};
static int32_t g_782[6] = {(-5L),(-5L),(-5L),(-5L),(-5L),(-5L)};
static struct S1 g_791[9] = {{32,269,3},{32,269,3},{32,269,3},{32,269,3},{32,269,3},{32,269,3},{32,269,3},{32,269,3},{32,269,3}};
static int16_t g_794 = (-7L);
static int32_t g_808 = (-1L);
static volatile uint8_t g_847 = 5UL;/* VOLATILE GLOBAL g_847 */
static volatile uint64_t g_876 = 18446744073709551608UL;/* VOLATILE GLOBAL g_876 */
static volatile uint64_t *g_875 = &g_876;
static volatile uint64_t **g_874 = &g_875;
static volatile uint64_t *** volatile g_873 = &g_874;/* VOLATILE GLOBAL g_873 */
static uint64_t g_904 = 0x2368109FBAB4877FLL;
static uint64_t *g_903 = &g_904;
static struct S0 g_990 = {0xD84583D0L,0x5EL};/* VOLATILE GLOBAL g_990 */
static struct S0 *g_989[5][2][10] = {{{&g_990,&g_990,&g_990,&g_374[4][5],&g_990,&g_990,&g_990,&g_990,&g_374[4][5],&g_990},{&g_990,&g_990,&g_990,(void*)0,(void*)0,&g_990,&g_990,(void*)0,(void*)0,(void*)0}},{{&g_990,&g_990,(void*)0,(void*)0,(void*)0,&g_990,&g_990,(void*)0,(void*)0,(void*)0},{&g_990,&g_990,(void*)0,(void*)0,(void*)0,&g_990,&g_990,(void*)0,(void*)0,(void*)0}},{{&g_990,&g_990,(void*)0,(void*)0,(void*)0,&g_990,&g_990,(void*)0,(void*)0,(void*)0},{&g_990,&g_990,(void*)0,(void*)0,(void*)0,&g_990,&g_990,(void*)0,(void*)0,(void*)0}},{{&g_990,&g_990,(void*)0,(void*)0,(void*)0,&g_990,&g_990,(void*)0,(void*)0,(void*)0},{&g_990,&g_990,(void*)0,(void*)0,(void*)0,&g_990,&g_990,(void*)0,(void*)0,(void*)0}},{{&g_990,&g_990,(void*)0,(void*)0,(void*)0,&g_990,&g_990,(void*)0,(void*)0,(void*)0},{&g_990,&g_990,(void*)0,(void*)0,(void*)0,&g_990,&g_990,(void*)0,(void*)0,(void*)0}}};
static int32_t ***g_1011[10][5][4] = {{{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267}},{{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,(void*)0,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267}},{{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267}},{{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,(void*)0,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267}},{{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267}},{{&g_267,&g_267,(void*)0,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,(void*)0,&g_267}},{{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267}},{{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,(void*)0,&g_267}},{{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267}},{{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267}}};
static int32_t **** volatile g_1010 = &g_1011[3][2][1];/* VOLATILE GLOBAL g_1010 */
static volatile uint32_t g_1052 = 0x631FF9AEL;/* VOLATILE GLOBAL g_1052 */
static uint8_t *g_1057 = &g_125;
static uint8_t **g_1056 = &g_1057;
static volatile int32_t g_1080 = 7L;/* VOLATILE GLOBAL g_1080 */
static int16_t ***g_1105 = (void*)0;
static int16_t ****g_1104[3][4][5] = {{{&g_1105,&g_1105,&g_1105,&g_1105,&g_1105},{(void*)0,&g_1105,(void*)0,&g_1105,(void*)0},{&g_1105,&g_1105,&g_1105,&g_1105,&g_1105},{&g_1105,&g_1105,&g_1105,&g_1105,&g_1105}},{{&g_1105,&g_1105,&g_1105,&g_1105,&g_1105},{(void*)0,&g_1105,(void*)0,&g_1105,(void*)0},{&g_1105,&g_1105,&g_1105,&g_1105,&g_1105},{&g_1105,&g_1105,&g_1105,&g_1105,&g_1105}},{{&g_1105,&g_1105,&g_1105,&g_1105,&g_1105},{(void*)0,&g_1105,(void*)0,&g_1105,(void*)0},{&g_1105,&g_1105,&g_1105,&g_1105,&g_1105},{&g_1105,&g_1105,&g_1105,&g_1105,&g_1105}}};
static int32_t * volatile g_1111 = (void*)0;/* VOLATILE GLOBAL g_1111 */
static struct S0 g_1186 = {0x98A3ED25L,1L};/* VOLATILE GLOBAL g_1186 */
static struct S1 *g_1215 = &g_141;
static struct S1 **g_1214 = &g_1215;
static int32_t * volatile g_1216 = &g_628;/* VOLATILE GLOBAL g_1216 */
static int64_t g_1218 = 0x906BDB26A9CD13D2LL;
static int32_t *** const *g_1223 = &g_133;
static int32_t *** const **g_1222 = &g_1223;
static int32_t * volatile g_1232 = &g_782[0];/* VOLATILE GLOBAL g_1232 */
static volatile struct S0 g_1234 = {18446744073709551608UL,-1L};/* VOLATILE GLOBAL g_1234 */


/* --- FORWARD DECLARATIONS --- */
static uint32_t  func_1(void);
static struct S1  func_9(int32_t  p_10, uint64_t * p_11, int64_t  p_12, uint64_t * const  p_13);
static int32_t  func_14(uint32_t  p_15, uint64_t  p_16, int64_t  p_17, struct S1  p_18, uint8_t  p_19);
static uint32_t  func_20(uint16_t  p_21, int32_t * const  p_22, const int32_t * p_23, uint32_t  p_24, uint8_t  p_25);
static uint16_t  func_26(struct S1  p_27);
static struct S1  func_28(int32_t * p_29, uint32_t  p_30, uint8_t  p_31, int64_t * p_32);
static uint32_t  func_37(struct S1  p_38, struct S1  p_39, uint8_t  p_40);
static struct S1  func_41(struct S1  p_42, int32_t * p_43, uint64_t  p_44, uint64_t * const  p_45, int16_t  p_46);
static struct S1  func_47(uint16_t  p_48, uint32_t  p_49, uint64_t * p_50, int64_t * p_51);
static uint64_t * func_52(int32_t * const  p_53, int32_t * p_54, uint32_t  p_55, uint64_t * p_56, int32_t  p_57);


/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/* 
 * reads : g_3 g_5 g_8 g_64 g_61 g_78 g_125 g_131 g_139 g_141 g_144 g_133 g_134 g_65 g_190 g_202 g_209 g_233 g_217 g_268 g_210 g_276 g_306 g_313 g_311 g_328 g_326 g_327 g_180 g_368.f0 g_436.f0 g_323 g_545 g_555 g_312 g_623 g_431 g_604 g_649 g_653 g_683 g_690 g_760 g_628 g_782 g_791 g_503 g_504 g_768 g_808 g_847 g_873 g_903 g_1214 g_1215 g_1234 g_1223
 * writes: g_5 g_3 g_8 g_61 g_125 g_78 g_132 g_144 g_141 g_180 g_202 g_217 g_267 g_209 g_268 g_311 g_210 g_306 g_555 g_313 g_431 g_604 g_683 g_760 g_794 g_808
 */
static uint32_t  func_1(void)
{ /* block id: 0 */
    int64_t *l_4[6][1];
    int32_t *l_6[7][8] = {{&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3},{&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3},{&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3},{&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3},{&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3},{&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3},{&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3,&g_3}};
    uint64_t *l_7[9][1] = {{&g_8},{(void*)0},{&g_8},{(void*)0},{&g_8},{(void*)0},{&g_8},{(void*)0},{&g_8}};
    int32_t *l_60 = &g_61;
    uint64_t **l_263 = &l_7[4][0];
    struct S1 *l_277 = &g_141;
    int64_t l_278 = (-5L);
    struct S1 l_280 = {42,202,2};
    int i, j;
    for (i = 0; i < 6; i++)
    {
        for (j = 0; j < 1; j++)
            l_4[i][j] = &g_5;
    }
    g_3 = (~(g_5 |= g_3));
    g_3 = g_3;
    (*l_277) = ((g_8 |= (l_6[4][6] == l_6[4][6])) , func_9(func_14(func_20(func_26(func_28(((safe_div_func_uint16_t_u_u((safe_div_func_uint16_t_u_u((func_37(func_41(((*l_277) = func_47(g_8, g_5, ((*l_263) = func_52(&g_3, &g_3, g_8, l_4[3][0], (safe_lshift_func_uint64_t_u_u((((((*l_60) = (&g_3 == (void*)0)) , g_3) > g_8) > g_8), 50)))), l_4[1][0])), g_65, l_278, &g_8, g_5), l_280, g_5) || g_141.f0), g_306[1])), g_8)) , l_6[4][6]), g_313, g_311, &l_278)), l_6[4][6], &g_628, g_628, g_628), g_628, g_782[0], g_791[2], g_782[0]), g_903, g_791[2].f0, &g_904));
    return g_306[5];
}


/* ------------------------------------------ */
/* 
 * reads : g_202 g_1214 g_1215 g_1234 g_1223 g_133 g_134
 * writes: g_202 g_78
 */
static struct S1  func_9(int32_t  p_10, uint64_t * p_11, int64_t  p_12, uint64_t * const  p_13)
{ /* block id: 421 */
    struct S1 l_908 = {30,158,1};
    int32_t l_968 = 0xFCAD1B97L;
    int32_t l_971 = 0x1A8F2643L;
    int32_t l_975 = (-9L);
    uint16_t l_976 = 0UL;
    struct S0 *l_991[6] = {&g_764,&g_764,&g_764,&g_764,&g_764,&g_764};
    uint32_t *l_1003 = (void*)0;
    uint16_t l_1022[1][7][10] = {{{1UL,0xF4ECL,0UL,0xF4ECL,1UL,0UL,0x6C92L,0x6C92L,0UL,1UL},{1UL,0x6D46L,0x6D46L,1UL,0x0E13L,0x8AA9L,1UL,0x8AA9L,0x0E13L,1UL},{0x8AA9L,1UL,0x8AA9L,0x0E13L,1UL,0x6D46L,0x6D46L,1UL,0x0E13L,0x8AA9L},{0x6C92L,0x6C92L,0UL,1UL,0xF4ECL,0UL,0xF4ECL,1UL,0UL,0x6C92L},{0xF4ECL,0x6D46L,0x8AA9L,0xF4ECL,0x0E13L,0x0E13L,0xF4ECL,0x8AA9L,0x6D46L,0xF4ECL},{0x8AA9L,0x6C92L,0x6D46L,0x0E13L,0x6C92L,0x0E13L,0x6D46L,0x6C92L,0x8AA9L,0x8AA9L},{0xF4ECL,1UL,0UL,0x6C92L,0x6C92L,0UL,1UL,0xF4ECL,0UL,0xF4ECL}}};
    int32_t l_1079 = 0x1454C901L;
    int32_t l_1081[9] = {0xEE1559B2L,0xEE1559B2L,0xEE1559B2L,0xEE1559B2L,0xEE1559B2L,0xEE1559B2L,0xEE1559B2L,0xEE1559B2L,0xEE1559B2L};
    uint32_t l_1083[10] = {0xA36D5C46L,0xA36D5C46L,0xA36D5C46L,0xA36D5C46L,0xA36D5C46L,0xA36D5C46L,0xA36D5C46L,0xA36D5C46L,0xA36D5C46L,0xA36D5C46L};
    int16_t ****l_1107 = &g_1105;
    int8_t l_1213 = 7L;
    uint32_t l_1219 = 18446744073709551614UL;
    int32_t **l_1235 = (void*)0;
    int32_t *l_1236 = &g_78;
    int32_t *l_1237 = (void*)0;
    int i, j, k;
    for (g_202 = (-17); (g_202 < 38); ++g_202)
    { /* block id: 424 */
        struct S1 l_907 = {15,250,6};
        struct S1 *l_912 = &g_791[2];
        struct S1 **l_911[9][10] = {{(void*)0,&l_912,&l_912,&l_912,&l_912,&l_912,&l_912,(void*)0,(void*)0,&l_912},{(void*)0,&l_912,&l_912,&l_912,&l_912,(void*)0,&l_912,&l_912,(void*)0,&l_912},{&l_912,&l_912,&l_912,&l_912,(void*)0,&l_912,&l_912,(void*)0,&l_912,&l_912},{&l_912,&l_912,&l_912,&l_912,(void*)0,(void*)0,&l_912,&l_912,&l_912,&l_912},{(void*)0,&l_912,&l_912,&l_912,&l_912,&l_912,&l_912,(void*)0,(void*)0,&l_912},{(void*)0,&l_912,&l_912,&l_912,&l_912,(void*)0,&l_912,&l_912,(void*)0,&l_912},{&l_912,&l_912,&l_912,&l_912,(void*)0,&l_912,&l_912,(void*)0,&l_912,&l_912},{&l_912,&l_912,&l_912,&l_912,(void*)0,(void*)0,&l_912,&l_912,&l_912,&l_912},{(void*)0,&l_912,&l_912,&l_912,&l_912,&l_912,&l_912,(void*)0,(void*)0,&l_912}};
        struct S1 ***l_913 = &l_911[1][1];
        int16_t **l_950[9][9] = {{&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555},{(void*)0,&g_555,&g_555,&g_555,&g_555,(void*)0,(void*)0,&g_555,(void*)0},{&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555},{&g_555,&g_555,(void*)0,(void*)0,(void*)0,&g_555,(void*)0,(void*)0,(void*)0},{&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555},{(void*)0,(void*)0,(void*)0,&g_555,(void*)0,(void*)0,(void*)0,&g_555,&g_555},{&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555},{(void*)0,&g_555,(void*)0,(void*)0,&g_555,&g_555,&g_555,&g_555,(void*)0},{&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&g_555}};
        int16_t *** const l_949 = &l_950[7][4];
        int32_t l_969 = 0x305FD8A1L;
        const uint32_t l_1049 = 0x7BE87A31L;
        uint16_t l_1051 = 0xB694L;
        int32_t l_1070 = (-5L);
        int32_t l_1071[10][10] = {{0xEBBFED22L,0L,0L,0x1F451BEDL,4L,0x1F451BEDL,0L,0L,0xEBBFED22L,0x1F451BEDL},{0x578BE43EL,0L,0x9734E39DL,0x93264DCEL,0x578BE43EL,0x2AB98CE8L,0x578BE43EL,0x93264DCEL,0x9734E39DL,0L},{4L,8L,0L,0x93264DCEL,0xEBBFED22L,8L,(-10L),8L,0xEBBFED22L,0x93264DCEL},{0xDC53108EL,0x93264DCEL,0xDC53108EL,0x1F451BEDL,0x578BE43EL,8L,0xDC53108EL,0L,0xDC53108EL,8L},{4L,0L,0xB5EE36A9L,0L,4L,0x2AB98CE8L,(-10L),0L,(-1L),0L},{0x578BE43EL,0x1F451BEDL,0xDC53108EL,0x93264DCEL,0xDC53108EL,0x1F451BEDL,0x578BE43EL,8L,0xDC53108EL,0L},{0xEBBFED22L,0x93264DCEL,0L,8L,4L,8L,0L,0x93264DCEL,0xEBBFED22L,8L},{0x578BE43EL,0x93264DCEL,0x9734E39DL,0L,0x578BE43EL,8L,0x578BE43EL,0L,0x9734E39DL,0x93264DCEL},{4L,0x1F451BEDL,0L,0L,0xEBBFED22L,0x2AB98CE8L,0L,0x2AB98CE8L,(-1L),0x1F451BEDL},{0x9734E39DL,0x1F451BEDL,0x9734E39DL,8L,0xDC53108EL,0x2AB98CE8L,0x9734E39DL,8L,0x9734E39DL,0x2AB98CE8L}};
        int16_t l_1110 = 1L;
        uint16_t l_1142 = 0x42E7L;
        int32_t *** const **l_1224 = (void*)0;
        int i, j;
        l_908 = l_907;
    }
    p_10 = ((*l_1236) = (((void*)0 == (*g_1214)) != ((g_1234 , l_1235) == (**g_1223))));
    return l_908;
}


/* ------------------------------------------ */
/* 
 * reads : g_5 g_683 g_760 g_503 g_504 g_791.f2 g_141.f1 g_313 g_202 g_431 g_8 g_125 g_312 g_768 g_808 g_144 g_139.f0 g_847 g_276 g_326 g_327 g_190 g_873 g_311
 * writes: g_5 g_683 g_794 g_808 g_8 g_125 g_313 g_760 g_3
 */
static int32_t  func_14(uint32_t  p_15, uint64_t  p_16, int64_t  p_17, struct S1  p_18, uint8_t  p_19)
{ /* block id: 360 */
    int32_t l_807 = 0xEEBD7ADDL;
    int32_t l_826 = 0L;
    int32_t l_827 = (-1L);
    int16_t **l_832 = (void*)0;
    int16_t l_848 = 0x94DBL;
    int32_t l_854 = 0xAAFAFD97L;
    uint32_t l_855 = 1UL;
    uint16_t l_858[7][5][7] = {{{2UL,0xB766L,0x488BL,2UL,65528UL,5UL,0xAC20L},{1UL,0x5130L,0x6295L,0x9494L,65535UL,0x6295L,65535UL},{0xD218L,2UL,65535UL,1UL,0xB766L,0xE9B8L,0xE9B8L},{0x1D4BL,1UL,1UL,1UL,0x1D4BL,1UL,0xEA1CL},{65535UL,0UL,0x0BCCL,0x4372L,65535UL,1UL,2UL}},{{0xF3C4L,0xEA1CL,6UL,65535UL,65535UL,0x62E2L,0x6295L},{65535UL,0x4372L,1UL,2UL,0x4372L,8UL,65533UL},{0x1D4BL,6UL,1UL,0x2D23L,0x5130L,0x5130L,0x2D23L},{0xD218L,65529UL,0xD218L,0xE9B8L,65533UL,65535UL,0xFBFBL},{1UL,65531UL,0xDA0BL,0x0E3AL,0x1D4BL,0x9B61L,1UL}},{{2UL,1UL,0xFBFBL,65533UL,0x52B8L,65535UL,0xB766L},{6UL,0xEA1CL,0xF3C4L,6UL,0x9494L,0x5130L,0x62E2L},{2UL,65533UL,8UL,65528UL,65528UL,8UL,65533UL},{0x9494L,1UL,0x53CAL,0xE0D8L,0xF3C4L,0x62E2L,0x0E3AL},{65535UL,2UL,0xD218L,0x0BCCL,0xD96FL,1UL,0x52B8L}},{{4UL,65535UL,0xDC44L,0xE0D8L,0x2D23L,1UL,1UL},{0xB766L,0x52B8L,3UL,65528UL,0UL,0xE9B8L,65535UL},{0x6295L,0xE0D8L,6UL,6UL,0xE0D8L,0x6295L,0xDB31L},{0xD96FL,2UL,1UL,65533UL,65533UL,5UL,65533UL},{0x9494L,0x527EL,65535UL,0x0E3AL,0xDB31L,0x53CAL,4UL}},{{0x0BCCL,2UL,65535UL,0xE9B8L,0xD96FL,3UL,0x0BCCL},{65531UL,0xE0D8L,0xDD18L,0x2D23L,0xEA1CL,0xDA0BL,0xEA1CL},{2UL,0x52B8L,0x52B8L,2UL,0xD218L,0UL,0xAC20L},{1UL,65535UL,0x6295L,65535UL,0x9494L,0x6295L,0x5130L},{65528UL,2UL,0x7625L,0x4372L,0xB766L,65535UL,0xAC20L}},{{0x6295L,0xEDCDL,1UL,0x527EL,0xDD18L,0x9B61L,0x62E2L},{0x11B3L,65535UL,0UL,1UL,0UL,1UL,0UL},{0x62E2L,0x62E2L,0xEA1CL,0x7B35L,0x53CAL,1UL,65535UL},{0xD218L,1UL,0x488BL,0x52B8L,1UL,0x11B3L,0UL},{0xDD18L,0xF3C4L,0xEDCDL,0xEFF8L,0x53CAL,0xDA0BL,0xEFF8L}},{{1UL,65535UL,0x4372L,0x0BCCL,0UL,65535UL,0xD218L},{0x527EL,1UL,0xDD18L,1UL,0xDD18L,1UL,0x527EL},{0x488BL,3UL,0x11B3L,5UL,0xE9B8L,8UL,65535UL},{0xF3C4L,0x62E2L,0x0E3AL,0xF3C4L,0x7B35L,0x1D4BL,1UL},{1UL,0x7625L,0x11B3L,1UL,65531UL,0x11B3L,65535UL}}};
    struct S0 *l_864 = (void*)0;
    struct S0 **l_863[2];
    struct S0 ***l_865 = &l_863[1];
    struct S0 **l_867[7][6][5] = {{{(void*)0,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{(void*)0,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864}},{{(void*)0,&l_864,(void*)0,&l_864,&l_864},{&l_864,&l_864,(void*)0,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{(void*)0,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864}},{{(void*)0,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{(void*)0,&l_864,(void*)0,&l_864,&l_864},{&l_864,&l_864,(void*)0,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864}},{{(void*)0,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{(void*)0,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864}},{{(void*)0,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,(void*)0},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,(void*)0,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,(void*)0},{&l_864,&l_864,&l_864,&l_864,&l_864}},{{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,(void*)0,&l_864,(void*)0},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,(void*)0},{&l_864,&l_864,&l_864,&l_864,&l_864}},{{&l_864,&l_864,(void*)0,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,(void*)0},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,&l_864,&l_864,&l_864},{&l_864,&l_864,(void*)0,&l_864,(void*)0},{&l_864,&l_864,&l_864,&l_864,&l_864}}};
    struct S0 ***l_866 = &l_867[4][1][2];
    int64_t *l_868 = (void*)0;
    int64_t *l_869 = (void*)0;
    int32_t ***l_870 = (void*)0;
    int32_t ***l_871 = &g_134;
    int32_t ****l_872 = (void*)0;
    int32_t *l_877 = &l_826;
    uint16_t *l_896 = &g_760[3][0];
    uint16_t *l_899 = &l_858[4][4][3];
    int64_t *l_902[2];
    int i, j, k;
    for (i = 0; i < 2; i++)
        l_863[i] = &l_864;
    for (i = 0; i < 2; i++)
        l_902[i] = &g_5;
    for (g_5 = 1; (g_5 >= 0); g_5 -= 1)
    { /* block id: 363 */
        int16_t l_809 = (-1L);
        uint32_t l_825 = 0UL;
        int32_t l_849 = 1L;
        int32_t l_850[1][3][8] = {{{0x415F05CFL,(-1L),0x415F05CFL,0x415F05CFL,(-1L),0x415F05CFL,0x415F05CFL,(-1L)},{(-1L),0x415F05CFL,0x415F05CFL,(-1L),0x415F05CFL,0x415F05CFL,(-1L),0x415F05CFL},{(-1L),(-1L),0L,(-1L),(-1L),0L,(-1L),(-1L)}}};
        int i, j, k;
        for (p_16 = 1; (p_16 <= 5); p_16 += 1)
        { /* block id: 366 */
            int32_t *l_792 = &g_683;
            int16_t *l_793 = &g_794;
            int32_t ***l_805[7][5][6] = {{{&g_267,&g_267,(void*)0,(void*)0,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,(void*)0},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,(void*)0,&g_267,(void*)0,&g_267},{&g_267,&g_267,&g_267,&g_267,(void*)0,&g_267}},{{&g_267,(void*)0,&g_267,&g_267,(void*)0,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267},{&g_267,(void*)0,(void*)0,(void*)0,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,(void*)0,&g_267,(void*)0}},{{&g_267,&g_267,(void*)0,&g_267,&g_267,&g_267},{&g_267,(void*)0,(void*)0,&g_267,(void*)0,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,(void*)0},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267}},{{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267},{&g_267,(void*)0,&g_267,(void*)0,&g_267,&g_267},{&g_267,(void*)0,&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267}},{{(void*)0,(void*)0,&g_267,&g_267,&g_267,(void*)0},{&g_267,&g_267,(void*)0,&g_267,&g_267,(void*)0},{&g_267,&g_267,(void*)0,&g_267,&g_267,(void*)0},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267},{(void*)0,&g_267,&g_267,&g_267,(void*)0,&g_267}},{{(void*)0,&g_267,&g_267,&g_267,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,&g_267,&g_267,(void*)0},{&g_267,&g_267,(void*)0,&g_267,(void*)0,(void*)0},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267}},{{(void*)0,(void*)0,&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267},{&g_267,&g_267,&g_267,(void*)0,&g_267,&g_267},{&g_267,&g_267,&g_267,&g_267,&g_267,&g_267}}};
            uint32_t l_810 = 0UL;
            int i, j, k;
            (*l_792) ^= 0L;
            if ((g_760[g_5][g_5] , (((((((0x6238A457L & (((*l_793) = p_16) & (0x75D2E236L != ((((safe_mod_func_int8_t_s_s((safe_mul_func_uint16_t_u_u(((*g_503) ^ ((((*l_792) |= 0xD7910610L) >= ((safe_add_func_uint8_t_u_u((safe_sub_func_int8_t_s_s(((safe_add_func_int8_t_s_s(((void*)0 == l_805[4][4][1]), (((((g_808 = (((safe_unary_minus_func_int64_t_s((g_791[2].f2 > g_141.f1))) && l_807) > 9L)) , l_807) > l_809) != 9L) == g_313))) <= l_809), l_809)), 0x87L)) , p_18.f0)) && p_16)), 0x3B01L)), 4UL)) , l_810) <= 0UL) > l_807)))) | 0xE5A7B5CDA07B5AACLL) ^ g_202) != g_431[4][1]) , 0xF0B3B3AF45311DC5LL) & p_16) >= 1UL)))
            { /* block id: 371 */
                int16_t **l_816[2];
                int16_t ***l_815 = &l_816[1];
                int16_t ****l_814[4];
                int i;
                for (i = 0; i < 2; i++)
                    l_816[i] = &l_793;
                for (i = 0; i < 4; i++)
                    l_814[i] = &l_815;
                for (p_15 = 0; (p_15 <= 5); p_15 += 1)
                { /* block id: 374 */
                    int16_t **l_813 = &g_555;
                    int16_t ***l_812[7] = {&l_813,&l_813,&l_813,&l_813,&l_813,&l_813,&l_813};
                    int16_t ****l_811[7][2][7] = {{{&l_812[4],&l_812[2],(void*)0,&l_812[2],&l_812[4],&l_812[4],&l_812[4]},{(void*)0,&l_812[4],&l_812[4],&l_812[5],&l_812[4],&l_812[4],&l_812[4]}},{{&l_812[4],(void*)0,&l_812[4],&l_812[3],&l_812[5],&l_812[4],&l_812[4]},{(void*)0,&l_812[5],&l_812[4],&l_812[4],&l_812[4],&l_812[4],&l_812[4]}},{{&l_812[4],&l_812[4],&l_812[4],&l_812[4],&l_812[4],&l_812[4],&l_812[4]},{&l_812[3],&l_812[4],&l_812[4],&l_812[4],&l_812[4],&l_812[4],&l_812[5]}},{{&l_812[4],&l_812[5],&l_812[4],&l_812[4],&l_812[4],&l_812[6],&l_812[5]},{&l_812[4],&l_812[4],&l_812[4],&l_812[4],&l_812[4],&l_812[4],&l_812[3]}},{{&l_812[4],(void*)0,&l_812[4],&l_812[4],&l_812[3],(void*)0,&l_812[6]},{&l_812[4],&l_812[4],(void*)0,&l_812[0],&l_812[4],&l_812[4],&l_812[5]}},{{&l_812[2],(void*)0,&l_812[5],&l_812[4],&l_812[4],&l_812[4],&l_812[4]},{&l_812[4],&l_812[4],&l_812[4],&l_812[4],&l_812[6],&l_812[3],&l_812[4]}},{{&l_812[4],&l_812[3],&l_812[4],&l_812[0],&l_812[4],&l_812[4],&l_812[4]},{&l_812[4],&l_812[4],&l_812[6],&l_812[4],&l_812[4],&l_812[3],(void*)0}}};
                    int16_t *****l_817 = &l_814[3];
                    int i, j, k;
                    (*l_792) = (l_811[5][0][6] == ((*l_817) = l_814[0]));
                    for (g_8 = 0; (g_8 <= 1); g_8 += 1)
                    { /* block id: 379 */
                        if (p_15)
                            break;
                    }
                    if (p_17)
                        break;
                }
            }
            else
            { /* block id: 384 */
                uint32_t l_818 = 0x9181C3ECL;
                for (g_125 = 0; (g_125 <= 5); g_125 += 1)
                { /* block id: 387 */
                    return l_809;
                }
                (*g_312) |= l_818;
            }
            l_827 = ((*l_792) = (l_826 |= (((((safe_lshift_func_int64_t_s_s(((g_760[(g_5 + 1)][g_5] = g_768[0]) & (l_809 <= p_18.f1)), g_808)) && g_431[0][4]) < (((((*l_792) ^ 1UL) & (g_144 != (safe_lshift_func_uint64_t_u_u((((safe_rshift_func_uint32_t_u_u(0x5581E78AL, g_139.f0)) <= p_17) ^ l_825), p_16)))) && 0UL) <= l_807)) && g_313) < g_125)));
            l_850[0][2][7] &= (l_849 = (safe_div_func_uint16_t_u_u((--g_760[(g_5 + 5)][g_5]), ((&l_793 == l_832) & (((safe_rshift_func_uint8_t_u_u((safe_sub_func_uint16_t_u_u(((void*)0 == &g_328), g_768[0])), 7)) > ((0xD54D8773276BD0BALL == (!(safe_mul_func_int32_t_s_s(((*l_792) = (+g_791[2].f2)), (safe_mul_func_uint16_t_u_u((0x1780B97B21E0BF2BLL ^ ((safe_rshift_func_uint64_t_u_u(g_847, p_18.f1)) >= g_768[0])), l_848)))))) >= p_18.f1)) != p_18.f1)))));
        }
        (*g_276) = 0x7B18F230L;
        for (l_848 = 5; (l_848 >= 0); l_848 -= 1)
        { /* block id: 404 */
            int32_t *l_851 = &l_850[0][2][7];
            int32_t *l_852 = (void*)0;
            int32_t *l_853[5][6][8] = {{{(void*)0,&g_782[1],&g_78,&g_311,&g_683,&l_849,&l_826,&g_683},{&l_826,&g_782[0],(void*)0,&g_3,(void*)0,&g_782[0],&l_826,(void*)0},{(void*)0,&l_850[0][1][7],&g_78,&g_628,&l_850[0][1][5],&g_782[0],&g_683,(void*)0},{&l_850[0][1][5],&g_782[0],&g_683,(void*)0,&l_850[0][1][5],&l_849,&g_78,&g_3},{(void*)0,&g_782[1],&l_826,(void*)0,(void*)0,&l_850[0][1][7],(void*)0,(void*)0},{&l_826,&g_628,&l_826,&g_628,&g_683,(void*)0,&g_78,(void*)0}},{{(void*)0,&g_628,&g_683,&g_3,&g_628,&l_850[0][1][7],&g_683,&g_683},{(void*)0,&g_782[1],&g_78,&g_311,&g_683,&l_849,&l_826,&g_683},{&l_826,&g_782[0],(void*)0,&g_3,(void*)0,&g_782[0],&l_826,(void*)0},{(void*)0,&l_850[0][1][7],&g_78,&g_628,&l_850[0][1][5],&g_782[0],&g_683,(void*)0},{&l_850[0][1][5],&g_782[0],&g_683,(void*)0,&l_850[0][1][5],&l_849,&g_78,&g_3},{(void*)0,&g_782[1],&l_826,(void*)0,(void*)0,&l_850[0][1][7],(void*)0,(void*)0}},{{&l_826,&g_628,&l_826,&g_628,&g_683,(void*)0,&g_78,(void*)0},{(void*)0,&g_628,&g_683,&g_3,&g_628,&l_850[0][1][7],&g_683,&g_683},{(void*)0,&g_782[1],&g_78,&g_311,&g_683,&l_849,&l_826,&g_683},{&l_826,&g_782[0],(void*)0,&g_3,(void*)0,&g_782[0],&l_826,(void*)0},{(void*)0,&l_850[0][1][7],&g_78,&g_628,&l_850[0][1][5],&g_782[0],&g_683,(void*)0},{&l_850[0][1][5],&g_782[0],&g_683,(void*)0,&l_850[0][1][5],&l_849,&g_78,&g_3}},{{&l_826,&l_850[0][1][7],&l_850[0][1][5],(void*)0,&g_628,&l_849,&g_628,(void*)0},{&l_850[0][1][5],&l_827,&l_850[0][1][5],&g_311,(void*)0,&g_628,&g_683,&g_3},{&g_628,&l_827,(void*)0,&g_628,(void*)0,&l_849,(void*)0,&g_78},{&g_628,&l_850[0][1][7],&g_683,&g_683,(void*)0,(void*)0,&l_850[0][1][5],&g_78},{&l_850[0][1][5],&g_782[1],&g_628,&g_628,&g_628,&g_782[1],&l_850[0][1][5],&g_3},{&l_826,&l_849,&g_683,&g_311,&g_78,&g_782[1],(void*)0,(void*)0}},{{&g_78,&g_782[1],(void*)0,(void*)0,&g_78,(void*)0,&g_683,&g_628},{&l_826,&l_850[0][1][7],&l_850[0][1][5],(void*)0,&g_628,&l_849,&g_628,(void*)0},{&l_850[0][1][5],&l_827,&l_850[0][1][5],&g_311,(void*)0,&g_628,&g_683,&g_3},{&g_628,&l_827,(void*)0,&g_628,(void*)0,&l_849,(void*)0,&g_78},{&g_628,&l_850[0][1][7],&g_683,&g_683,(void*)0,(void*)0,&l_850[0][1][5],&g_78},{&l_850[0][1][5],&g_782[1],&g_628,&g_628,&g_628,&g_782[1],&l_850[0][1][5],&g_3}}};
            int i, j, k;
            --l_855;
            --l_858[4][4][3];
            if (p_17)
                continue;
        }
    }
    (*l_877) = (((p_17 ^= (safe_rshift_func_uint16_t_u_s((((*l_865) = l_863[1]) != ((*l_866) = ((**g_326) , &l_864))), l_848))) , ((l_870 == (l_871 = (p_18.f1 , l_871))) == (g_873 != (void*)0))) < 0xEBC8CB5539DAD0BALL);
    (*l_877) = ((((void*)0 != &g_873) < (*l_877)) == (safe_sub_func_int16_t_s_s((p_18.f2 > ((l_854 = ((safe_mul_func_int8_t_s_s((((safe_rshift_func_uint64_t_u_u((*l_877), (*l_877))) <= (safe_mod_func_int8_t_s_s((safe_mul_func_int32_t_s_s((((safe_add_func_int8_t_s_s((((((((safe_rshift_func_int8_t_s_u(((safe_sub_func_int16_t_s_s((safe_mul_func_int64_t_s_s((((*l_899) ^= ((*l_896)--)) , ((((*l_877) || (((*g_312) = (*l_877)) ^ (safe_lshift_func_int64_t_s_s(p_15, p_18.f0)))) > 1L) < g_311)), 1L)), (*l_877))) && g_504), 2)) , p_17) , 0x3CL) == (-10L)) == (*l_877)) < (-1L)) < 65531UL), p_17)) , 0xBC4031F3L) , (-1L)), 6UL)), 0xBAL))) != (*l_877)), p_17)) & (*l_877))) == 18446744073709551613UL)), 0xAA81L)));
    return p_15;
}


/* ------------------------------------------ */
/* 
 * reads :
 * writes: g_3
 */
static uint32_t  func_20(uint16_t  p_21, int32_t * const  p_22, const int32_t * p_23, uint32_t  p_24, uint8_t  p_25)
{ /* block id: 355 */
    uint64_t *l_763 = &g_217;
    uint64_t * const * const l_762 = &l_763;
    uint64_t * const * const *l_761 = &l_762;
    const int32_t l_767 = 0L;
    struct S1 l_779[8] = {{14,22,3},{14,22,3},{14,22,3},{14,22,3},{14,22,3},{14,22,3},{14,22,3},{14,22,3}};
    int32_t *l_780[9] = {&g_313,&g_3,&g_3,&g_313,&g_3,&g_3,&g_313,&g_3,&g_3};
    uint32_t l_781 = 0x22395C97L;
    int64_t l_783[7][4] = {{0x2E7E7963B504B497LL,0x3EF1937B12415AA8LL,1L,0xE13ADC21B3AE656CLL},{(-1L),1L,1L,(-1L)},{0x2E7E7963B504B497LL,1L,(-1L),0xB9D50ECC58BF5FDELL},{0L,0x84A0690655915D91LL,0xB9D50ECC58BF5FDELL,0x15073526D45EF2F1LL},{0xB9D50ECC58BF5FDELL,0x15073526D45EF2F1LL,(-4L),0x15073526D45EF2F1LL},{1L,0x84A0690655915D91LL,0x3EF1937B12415AA8LL,0xB9D50ECC58BF5FDELL},{(-1L),1L,0x15073526D45EF2F1LL,(-1L)}};
    uint8_t l_784 = 0UL;
    struct S1 l_785 = {68,351,5};
    struct S1 *l_786 = &l_779[1];
    int i, j;
    (*p_22) = (l_761 == (((*l_786) = l_785) , &l_762));
    (*p_22) = (p_24 , (safe_lshift_func_uint64_t_u_s((safe_mul_func_int16_t_s_s((-1L), 0UL)), 6)));
    return p_21;
}


/* ------------------------------------------ */
/* 
 * reads : g_217 g_78 g_306 g_180 g_368.f0 g_141.f1 g_139.f1 g_436.f0 g_133 g_134 g_190.f0 g_5 g_328 g_326 g_327 g_139.f0 g_3 g_209 g_210 g_323 g_141 g_8 g_144 g_125 g_202 g_545 g_555 g_313 g_311 g_276 g_312 g_190.f1 g_61 g_623 g_431 g_604 g_649 g_190 g_653 g_683 g_690 g_760
 * writes: g_217 g_78 g_311 g_8 g_5 g_210 g_306 g_202 g_555 g_141 g_313 g_144 g_431 g_604 g_3 g_683 g_125 g_760
 */
static uint16_t  func_26(struct S1  p_27)
{ /* block id: 207 */
    int16_t l_390 = 1L;
    int32_t l_391 = 0xA52AD08FL;
    int32_t l_392 = 0xA14CACBFL;
    int32_t l_393 = (-3L);
    int32_t l_394 = 1L;
    int32_t l_395 = (-1L);
    int32_t l_396 = 0L;
    int32_t l_397 = (-7L);
    int32_t l_398 = (-1L);
    int32_t l_399 = (-1L);
    int32_t l_400 = 1L;
    int32_t l_401 = 6L;
    int32_t l_403[5][2] = {{(-6L),(-6L)},{(-6L),(-6L)},{(-6L),(-6L)},{(-6L),(-6L)},{(-6L),(-6L)}};
    int32_t l_404 = 0x1DA48B7AL;
    int16_t l_405 = 8L;
    uint32_t l_406 = 8UL;
    uint8_t l_419 = 0xE9L;
    uint32_t l_428[2][6] = {{0xB3F291D9L,0xB3F291D9L,0UL,0xB3F291D9L,0xB3F291D9L,0UL},{0xB3F291D9L,0xB3F291D9L,0UL,0xB3F291D9L,0xB3F291D9L,0UL}};
    int16_t *l_429 = &l_405;
    int8_t *l_430[3];
    struct S0 *l_435 = &g_436;
    uint32_t l_511 = 0xCDA7A4DDL;
    uint64_t *l_512 = &g_8;
    int32_t l_629 = 0x80A4EF97L;
    int32_t l_630[6] = {0x6E4803B3L,0x6E4803B3L,(-7L),0x6E4803B3L,0x6E4803B3L,(-7L)};
    uint32_t l_632 = 9UL;
    uint32_t l_664[2];
    uint32_t *l_682[9][7][2] = {{{&g_306[5],&l_406},{(void*)0,(void*)0},{(void*)0,(void*)0},{&l_406,(void*)0},{(void*)0,&g_306[7]},{&l_406,&g_306[5]},{&g_306[5],&l_406}},{{&g_306[3],&l_406},{&g_306[3],&l_406},{&g_306[5],&g_306[5]},{&l_406,&g_306[7]},{&g_306[5],&g_306[7]},{&g_306[2],(void*)0},{(void*)0,&g_306[5]}},{{&g_306[5],(void*)0},{&g_306[5],&g_306[6]},{&g_306[6],&l_406},{(void*)0,&g_306[7]},{&g_306[3],&l_406},{(void*)0,&g_306[3]},{&g_306[6],&l_406}},{{&g_306[5],&g_306[5]},{&g_306[4],&g_306[5]},{&g_306[5],&l_406},{&g_306[6],&g_306[3]},{(void*)0,&l_406},{&g_306[3],&g_306[7]},{(void*)0,&l_406}},{{&g_306[6],&g_306[6]},{&g_306[5],(void*)0},{&g_306[5],&g_306[5]},{(void*)0,(void*)0},{&g_306[2],&g_306[7]},{&g_306[5],&g_306[6]},{&g_306[5],&l_406}},{{&g_306[5],&g_306[5]},{&l_406,(void*)0},{&l_406,&g_306[5]},{&g_306[5],&l_406},{&g_306[5],&g_306[6]},{&g_306[5],&g_306[7]},{&g_306[2],(void*)0}},{{(void*)0,&g_306[5]},{&g_306[5],(void*)0},{&g_306[5],&g_306[6]},{&g_306[6],&l_406},{(void*)0,&g_306[7]},{&g_306[3],&l_406},{(void*)0,&g_306[3]}},{{&g_306[6],&l_406},{&g_306[5],&g_306[5]},{&g_306[4],&g_306[5]},{&g_306[5],&l_406},{&g_306[6],&g_306[3]},{(void*)0,&l_406},{&g_306[3],&g_306[7]}},{{(void*)0,&l_406},{&g_306[6],&g_306[6]},{&g_306[5],(void*)0},{&g_306[5],&g_306[5]},{(void*)0,(void*)0},{&g_306[2],&g_306[7]},{&g_306[5],&g_306[6]}}};
    struct S1 l_688[1][3][4] = {{{{69,187,0},{79,236,6},{69,187,0},{85,322,5}},{{69,187,0},{85,322,5},{85,322,5},{69,187,0}},{{48,91,2},{85,322,5},{11,36,2},{85,322,5}}}};
    struct S0 ** const ** const l_704 = (void*)0;
    int i, j, k;
    for (i = 0; i < 3; i++)
        l_430[i] = &g_431[0][4];
    for (i = 0; i < 2; i++)
        l_664[i] = 0xFC2C0A02L;
lbl_438:
    for (g_217 = 17; (g_217 == 4); --g_217)
    { /* block id: 210 */
        int32_t *l_382 = (void*)0;
        int32_t *l_383 = &g_3;
        int32_t *l_384 = &g_3;
        int32_t *l_385 = &g_311;
        int32_t *l_386 = &g_78;
        int32_t *l_387 = &g_313;
        int32_t *l_388 = (void*)0;
        int32_t *l_389[7] = {&g_78,&g_78,&g_78,&g_78,&g_78,&g_78,&g_78};
        int16_t l_402 = 0x9DA4L;
        int i;
        l_406--;
        (*l_386) = (*l_386);
    }
    if ((4294967295UL || (safe_mul_func_int8_t_s_s((p_27.f2 , (safe_div_func_int8_t_s_s(0x9EL, 0xEDL))), ((safe_rshift_func_int8_t_s_u((safe_lshift_func_int8_t_s_s(p_27.f1, 1)), 5)) == ((((l_397 = ((l_419 & (((safe_rshift_func_uint8_t_u_s((safe_div_func_int64_t_s_s((((safe_div_func_uint64_t_u_u((((&l_419 != &g_144) ^ ((*l_429) &= ((safe_div_func_int16_t_s_s((&l_396 != (void*)0), 0x1746L)) || l_428[1][1]))) < g_306[5]), l_390)) && 0xD5D58CCCAC50B111LL) , 6L), l_398)), 7)) == g_180) != l_393)) <= g_368.f0)) == p_27.f1) ^ g_141.f1) <= l_391))))))
    { /* block id: 216 */
        struct S0 *l_432 = &g_374[4][6];
        struct S0 **l_434[3];
        int32_t l_437 = (-1L);
        int i;
        for (i = 0; i < 3; i++)
            l_434[i] = &l_432;
        l_435 = l_432;
        return l_437;
    }
    else
    { /* block id: 219 */
        uint16_t l_447 = 65535UL;
        int32_t l_448 = (-9L);
        int32_t l_449 = 0x61C0F79AL;
        int32_t *l_456 = &g_78;
        int64_t *l_457 = &g_5;
        int32_t ***l_466 = &g_134;
        uint64_t *l_472 = &g_8;
        uint32_t *l_482 = (void*)0;
        uint32_t *l_483[8][7] = {{&g_306[5],(void*)0,(void*)0,&l_406,(void*)0,(void*)0,&g_306[5]},{&l_406,&g_306[5],(void*)0,&g_306[2],(void*)0,&g_306[5],&g_306[5]},{&l_406,(void*)0,&g_306[8],&l_406,&g_306[5],&g_306[5],&l_406},{&l_406,(void*)0,&l_406,&l_406,&g_306[5],&l_406,(void*)0},{&l_406,(void*)0,(void*)0,&g_306[2],&g_306[5],&l_406,&l_406},{&g_306[5],(void*)0,&g_306[5],&l_406,&l_406,&l_406,(void*)0},{&g_306[5],&g_306[5],(void*)0,&l_406,(void*)0,&g_306[5],&g_306[5]},{&g_306[5],&g_306[5],(void*)0,(void*)0,&g_306[5],&g_306[5],(void*)0}};
        int32_t l_490 = 0x9FF1E84FL;
        uint8_t *l_507[3][4][4] = {{{&l_419,&l_419,&g_144,&g_144},{&l_419,&g_144,&l_419,&l_419},{&g_144,&g_144,&g_144,&l_419},{&l_419,&g_144,&l_419,&g_144}},{{&g_144,&g_144,&g_144,&g_144},{&g_144,&g_144,&g_144,&l_419},{&g_144,&l_419,&l_419,&l_419},{&l_419,&g_144,&g_144,&l_419}},{{&g_144,&l_419,&l_419,&l_419},{&g_144,&g_144,&l_419,&g_144},{&g_144,&g_144,&l_419,&g_144},{&g_144,&g_144,&g_144,&l_419}}};
        int32_t l_508 = 0L;
        int32_t l_522 = 0x7DF420BCL;
        int32_t l_523 = 0x25155F41L;
        int32_t l_524 = (-10L);
        uint32_t l_525 = 4294967295UL;
        int32_t l_532 = 0x6409A298L;
        int32_t l_533 = (-1L);
        int32_t l_534 = 6L;
        int32_t l_536 = 0L;
        int32_t l_537 = (-1L);
        int32_t l_538 = 0L;
        int32_t l_539[2][2] = {{0x77A1AFB0L,0x77A1AFB0L},{0x77A1AFB0L,0x77A1AFB0L}};
        int i, j, k;
        if (p_27.f2)
            goto lbl_438;
        if ((safe_lshift_func_int32_t_s_u(((g_139.f1 && 0x8D8626822DD07B12LL) && (safe_sub_func_int16_t_s_s(((((safe_lshift_func_uint16_t_u_u(((l_448 = (l_447 = (-1L))) & (p_27 , 0L)), g_436.f0)) >= 4294967295UL) != (*l_456)) & 0L), p_27.f1))), 30)))
        { /* block id: 224 */
            struct S0 **l_463[3][1][7] = {{{(void*)0,&l_435,(void*)0,&l_435,(void*)0,&l_435,(void*)0}},{{&l_435,&l_435,&l_435,&l_435,&l_435,&l_435,&l_435}},{{&l_435,&l_435,&l_435,&l_435,&l_435,&l_435,&l_435}}};
            struct S0 ***l_462 = &l_463[1][0][1];
            int32_t l_464 = 0x5106F465L;
            int i, j, k;
            (*g_209) = ((safe_mod_func_uint8_t_u_u((safe_mul_func_int64_t_s_s(((((*l_462) = &l_435) != (((*g_133) == (((*l_429) = l_464) , (func_28(&l_464, (((+l_390) , l_466) != (void*)0), g_190.f0, &g_5) , (void*)0))) , (*g_328))) | g_3), p_27.f1)), 0xC7L)) , (*g_209));
        }
        else
        { /* block id: 228 */
            const int32_t *l_467 = &g_313;
lbl_468:
            (*l_456) = p_27.f0;
            l_467 = (void*)0;
            if (g_5)
                goto lbl_468;
        }
        (*l_456) = (safe_unary_minus_func_int16_t_s((safe_add_func_uint8_t_u_u((((*g_323) , p_27.f1) > ((*l_472) ^= p_27.f2)), (((safe_div_func_uint32_t_u_u(((g_144 && (((safe_lshift_func_uint64_t_u_s(p_27.f0, 18)) > 1L) < ((((safe_lshift_func_uint64_t_u_s(((!(g_327 == ((safe_sub_func_uint32_t_u_u((g_306[5]--), (safe_div_func_int8_t_s_s((((safe_lshift_func_int16_t_s_s(l_490, (safe_div_func_int32_t_s_s(p_27.f0, g_217)))) , p_27.f1) != (*l_456)), p_27.f2)))) , (void*)0))) > 0x44L), 47)) ^ p_27.f1) > 0x53D99F85ADEC9BD0LL) & g_125))) , g_78), p_27.f2)) , l_435) == l_435)))));
        if ((((safe_div_func_uint8_t_u_u(0x85L, ((&g_132 == (void*)0) | ((safe_rshift_func_uint8_t_u_u((((safe_mod_func_int16_t_s_s((((*g_323) , p_27.f0) && p_27.f1), 0xCFCEL)) | (*l_456)) & p_27.f1), l_403[4][0])) != l_394)))) > p_27.f0) >= (*l_456)))
        { /* block id: 237 */
            int32_t *l_519 = &g_313;
            int32_t l_520 = 1L;
            int32_t *l_521[10];
            int32_t l_535 = 0x82194D09L;
            int i;
            for (i = 0; i < 10; i++)
                l_521[i] = &l_403[0][0];
            for (g_202 = (-14); (g_202 != 2); g_202++)
            { /* block id: 240 */
                l_399 = (safe_mod_func_int16_t_s_s(1L, (l_396 || (safe_rshift_func_uint64_t_u_u(p_27.f2, 42)))));
            }
            l_525--;
            for (l_449 = 4; (l_449 <= 4); l_449 = safe_add_func_uint32_t_u_u(l_449, 3))
            { /* block id: 246 */
                int32_t l_530 = 0x5772A805L;
                int32_t l_531[8][8] = {{(-1L),(-5L),1L,0x85A31315L,(-7L),0x0D63683DL,1L,1L},{0x0CF0C988L,0x85A31315L,0L,0xA522660DL,0x0D63683DL,7L,0xB0983570L,1L},{0x0D63683DL,7L,0xB0983570L,1L,1L,0xB0983570L,7L,0x0D63683DL},{0L,0x0673FB36L,1L,1L,1L,1L,0x0D63683DL,(-7L)},{0xD33FC890L,0xB0983570L,(-1L),1L,1L,1L,0xA522660DL,0x85A31315L},{0x607D39D4L,0x0673FB36L,0xD33FC890L,(-1L),1L,0xB0983570L,0L,1L},{0x85A31315L,7L,0x0673FB36L,0xB0983570L,0x0673FB36L,7L,0x85A31315L,(-5L)},{(-2L),0x85A31315L,0x607D39D4L,0xD33FC890L,0L,0x0D63683DL,0x0CF0C988L,(-1L)}};
                uint32_t l_540[5];
                struct S1 **l_550 = (void*)0;
                struct S1 *l_552 = &g_141;
                struct S1 **l_551 = &l_552;
                int16_t *l_553 = &l_390;
                int16_t **l_554 = &l_429;
                int16_t **l_556 = (void*)0;
                int8_t l_559 = 0xADL;
                int i, j;
                for (i = 0; i < 5; i++)
                    l_540[i] = 0x8FB83E85L;
                ++l_540[4];
                g_311 |= ((safe_lshift_func_uint64_t_u_s(g_545[2], ((safe_sub_func_int16_t_s_s((safe_sub_func_uint8_t_u_u(p_27.f0, (l_393 = ((((*l_551) = &g_141) == &p_27) <= (((((*l_554) = l_553) != (g_555 = g_555)) >= ((p_27.f1 <= (safe_lshift_func_int8_t_s_u((((0x87L || (g_313 , 0x88L)) & l_540[4]) & 0xA7L), 2))) != 0L)) , 0xFE10FCA6L))))), l_559)) >= g_180))) , p_27.f0);
                if ((*g_276))
                    continue;
            }
        }
        else
        { /* block id: 255 */
            int64_t l_588[5] = {(-6L),(-6L),(-6L),(-6L),(-6L)};
            int32_t l_589 = 3L;
            int32_t l_609 = 7L;
            uint64_t * const l_624[4] = {&g_217,&g_217,&g_217,&g_217};
            int32_t *l_625[4][10][6];
            int32_t l_631 = (-1L);
            int i, j, k;
            for (i = 0; i < 4; i++)
            {
                for (j = 0; j < 10; j++)
                {
                    for (k = 0; k < 6; k++)
                        l_625[i][j][k] = &l_391;
                }
            }
            for (l_392 = (-24); (l_392 == 1); l_392 = safe_add_func_int64_t_s_s(l_392, 5))
            { /* block id: 258 */
                uint32_t l_573 = 0x036930AAL;
                struct S1 *l_582 = &g_141;
                int32_t l_587[5] = {0xB12BEFF3L,0xB12BEFF3L,0xB12BEFF3L,0xB12BEFF3L,0xB12BEFF3L};
                int16_t **l_607 = (void*)0;
                uint8_t l_616 = 0UL;
                uint64_t * const l_626[8][9] = {{&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217},{&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217},{&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217},{&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217},{&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217},{&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217},{&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217},{&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217,&g_217}};
                int i, j;
                l_456 = &l_399;
                (*g_312) = ((safe_mul_func_int32_t_s_s(p_27.f0, ((!(0xBCL | (l_391 >= ((((safe_unary_minus_func_uint8_t_u(((safe_mod_func_uint32_t_u_u(((l_589 ^= (~((l_573 |= l_394) || (((safe_sub_func_uint32_t_u_u((safe_add_func_uint64_t_u_u((0x3FL < (safe_div_func_int32_t_s_s((((((((safe_rshift_func_uint64_t_u_u((((*l_582) = (*g_323)) , (safe_mul_func_uint64_t_u_u(((((((safe_lshift_func_uint8_t_u_s(p_27.f1, 7)) & (((*l_456) >= p_27.f0) , 0x0DB922382183AA12LL)) == p_27.f1) ^ 0xBCL) && (-1L)) | l_587[0]), g_313))), g_313)) | g_202) >= 0x4CL) != g_202) || l_392) ^ l_587[0]) , 1L), l_588[4]))), 0UL)), 0x7219DCA0L)) ^ 0xC6L) < p_27.f2)))) || p_27.f1), p_27.f2)) ^ g_8))) , 8L) < (-10L)) < g_306[5])))) >= p_27.f2))) , p_27.f2);
                for (l_532 = 0; (l_532 == 18); ++l_532)
                { /* block id: 266 */
                    const uint16_t l_605 = 65530UL;
                    uint16_t *l_606 = &l_447;
                    int16_t *l_608[1][5] = {{&l_390,&l_390,&l_390,&l_390,&l_390}};
                    int32_t l_615 = 0x48A4D6C4L;
                    int32_t l_627 = 0x5E007205L;
                    int i, j;
                    if ((safe_mod_func_uint16_t_u_u(65535UL, (l_609 = ((~(safe_add_func_int32_t_s_s((l_589 = (safe_rshift_func_uint32_t_u_s(((p_27.f2 = (!(g_144 = ((*l_456) , (g_190.f1 == (*l_456)))))) >= (((*l_429) = (g_3 > (((4294967295UL ^ (g_202 && ((l_403[3][1] != (p_27.f0 = (((*l_606) = ((safe_div_func_int32_t_s_s(((g_604 = (g_431[7][2] = (((safe_mod_func_uint32_t_u_u(g_306[6], p_27.f1)) >= l_587[0]) , p_27.f0))) || (*l_456)), 0x23189E02L)) | l_605)) | 1L))) >= 0x8E35408AE713E3FALL))) , &g_555) != l_607))) && g_61)), 10))), (*l_456)))) || 0UL)))))
                    { /* block id: 276 */
                        return p_27.f0;
                    }
                    else
                    { /* block id: 278 */
                        const int32_t *l_610 = (void*)0;
                        int32_t *l_611 = &l_393;
                        int32_t l_612[3][4] = {{(-9L),(-9L),(-9L),(-9L)},{(-9L),(-9L),(-9L),(-9L)},{(-9L),(-9L),(-9L),(-9L)}};
                        int32_t *l_613 = &l_394;
                        int32_t *l_614[1][5][5] = {{{&g_313,&l_522,&g_313,&l_533,&l_449},{&l_397,&g_78,&l_449,&g_78,&l_397},{&g_313,&g_78,&l_522,&l_397,&l_522},{&l_522,&l_522,&l_449,&l_397,&l_532},{&g_78,&g_313,&g_313,&g_78,&l_522}}};
                        int i, j, k;
                        l_610 = l_610;
                        (*g_276) = ((*l_611) |= ((*l_456) &= l_609));
                        l_616++;
                    }
                    l_627 ^= ((l_615 = ((safe_mod_func_uint16_t_u_u((*l_456), (l_403[4][0] = p_27.f2))) || (((1L == 0UL) > ((*l_472) = ((p_27.f2 |= (g_623 , g_545[2])) > 0x5D7633DCL))) > ((((*l_582) = func_41(func_41(func_41(g_141, &l_615, g_144, l_624[3], l_399), l_625[1][1][5], g_431[3][1], l_626[6][5], l_587[0]), &l_615, l_615, l_512, l_511)) , (-2L)) , g_431[1][3])))) != (*l_456));
                }
            }
            --l_632;
        }
    }
    for (g_604 = 1; (g_604 <= 5); g_604 += 1)
    { /* block id: 298 */
        uint32_t l_650 = 0x5167C439L;
        int32_t l_659 = 0x8E811918L;
        int32_t l_663[4][8][8] = {{{0x31363615L,0L,0x45275535L,0x8AEEAC53L,0xA7C4B948L,0x4984C5C3L,(-8L),0x52184256L},{0x79F30973L,0x56EDCA2FL,0x458302E6L,0x31363615L,0xA7C4B948L,(-3L),(-3L),0xA7C4B948L},{0x31363615L,7L,7L,0x31363615L,0xCBF25CD3L,0x9D27A457L,(-1L),0x52184256L},{0xDF0079A2L,7L,7L,0x8AEEAC53L,(-1L),(-8L),(-3L),0x4540C12AL},{0x92732880L,7L,0x458302E6L,0x79F30973L,(-5L),0x9D27A457L,(-8L),0xCBF25CD3L},{0x92732880L,7L,0x45275535L,(-4L),(-1L),(-3L),0xDA19226FL,0xCBF25CD3L},{0xDF0079A2L,0x56EDCA2FL,7L,0x79F30973L,0xCBF25CD3L,0x4984C5C3L,0xDA19226FL,0x4540C12AL},{0x31363615L,0L,0x45275535L,0x8AEEAC53L,0xA7C4B948L,0x4984C5C3L,(-8L),0x52184256L}},{{0x79F30973L,0x56EDCA2FL,0x458302E6L,0x31363615L,0xA7C4B948L,(-3L),(-3L),0xA7C4B948L},{0x31363615L,7L,7L,0x31363615L,0xCBF25CD3L,0x9D27A457L,(-1L),0x52184256L},{0xDF0079A2L,7L,7L,0x8AEEAC53L,(-1L),(-8L),(-3L),0x4540C12AL},{0x92732880L,7L,0x458302E6L,0x79F30973L,(-5L),0x9D27A457L,(-8L),0xCBF25CD3L},{0x92732880L,7L,0x45275535L,(-4L),(-1L),(-3L),0xDA19226FL,0xCBF25CD3L},{0xDF0079A2L,0x56EDCA2FL,7L,0x79F30973L,0xCBF25CD3L,0x4984C5C3L,0xDA19226FL,0x4540C12AL},{0x31363615L,0L,0x45275535L,0x8AEEAC53L,0xA7C4B948L,0x4984C5C3L,(-8L),0x52184256L},{0x79F30973L,0x56EDCA2FL,0x458302E6L,0x31363615L,0xA7C4B948L,(-3L),(-3L),0xA7C4B948L}},{{0xDF0079A2L,0L,0L,0xDF0079A2L,(-5L),(-3L),0xD6334233L,0x4540C12AL},{0x79F30973L,1L,0L,(-4L),0xCBF25CD3L,(-1L),(-8L),0xA7C4B948L},{0x5A98E1D2L,1L,7L,0x8AEEAC53L,0x52184256L,(-3L),(-1L),(-5L)},{0x5A98E1D2L,0L,0x458302E6L,0x92732880L,0xCBF25CD3L,(-8L),0x9D27A457L,(-5L)},{0x79F30973L,7L,1L,0x8AEEAC53L,(-5L),0xDA19226FL,0x9D27A457L,0xA7C4B948L},{0xDF0079A2L,0x45275535L,0x458302E6L,(-4L),0L,0xDA19226FL,(-1L),0x4540C12AL},{0x8AEEAC53L,7L,7L,0xDF0079A2L,0L,(-8L),(-8L),0L},{0xDF0079A2L,0L,0L,0xDF0079A2L,(-5L),(-3L),0xD6334233L,0x4540C12AL}},{{0x79F30973L,1L,0L,(-4L),0xCBF25CD3L,(-1L),(-8L),0xA7C4B948L},{0x5A98E1D2L,1L,7L,0x8AEEAC53L,0x52184256L,(-3L),(-1L),(-5L)},{0x5A98E1D2L,0L,0x458302E6L,0x92732880L,0xCBF25CD3L,(-8L),0x9D27A457L,(-5L)},{0x79F30973L,7L,1L,0x8AEEAC53L,(-5L),0xDA19226FL,0x9D27A457L,0xA7C4B948L},{0xDF0079A2L,0x45275535L,0x458302E6L,(-4L),0L,0xDA19226FL,(-1L),0x4540C12AL},{0x8AEEAC53L,7L,7L,0xDF0079A2L,0L,(-8L),(-8L),0L},{0xDF0079A2L,0L,0L,0xDF0079A2L,(-5L),(-3L),0xD6334233L,0x4540C12AL},{0x79F30973L,1L,0L,(-4L),0xCBF25CD3L,(-1L),(-8L),0xA7C4B948L}}};
        uint32_t *l_681 = &g_306[5];
        int32_t **l_719 = &g_268;
        int32_t l_733 = 0L;
        uint8_t l_734 = 1UL;
        int i, j, k;
        if ((l_630[5] , (safe_sub_func_int8_t_s_s(p_27.f1, p_27.f2))))
        { /* block id: 299 */
            int32_t l_656 = 0L;
            int32_t *l_657 = &l_399;
            int32_t *l_658 = &l_395;
            int32_t *l_660 = &g_311;
            int32_t *l_661 = &g_3;
            int32_t *l_662[4] = {(void*)0,(void*)0,(void*)0,(void*)0};
            int i;
            if (p_27.f0)
            { /* block id: 300 */
                uint32_t *l_639 = &g_306[7];
                struct S0 **l_648 = &l_435;
                struct S0 ***l_647 = &l_648;
                struct S0 ****l_646 = &l_647;
                int16_t l_651 = 4L;
                (*g_653) = (safe_lshift_func_int8_t_s_u(((((*l_639) ^= p_27.f2) & (((l_392 &= (safe_add_func_uint32_t_u_u(l_395, ((1UL & 0xD6L) , ((p_27.f1 > ((p_27.f0 <= (0x4948849FL >= (((((safe_mul_func_uint16_t_u_u((((((safe_mul_func_int32_t_s_s(((((*l_646) = (void*)0) != ((p_27.f1 , g_649) , (void*)0)) >= g_431[7][4]), p_27.f2)) , l_639) == &l_630[2]) || l_650) <= (-3L)), p_27.f0)) > 2UL) , (**g_326)) , 4L) | l_391))) == 4294967295UL)) || 0x76496743DD510D35LL))))) ^ l_650) | l_651)) == 0x77L), p_27.f0));
            }
            else
            { /* block id: 305 */
                int32_t *l_654 = (void*)0;
                int32_t *l_655[6] = {&l_391,&l_391,&l_403[4][0],&l_391,&l_391,&l_403[4][0]};
                int i;
                l_656 ^= (*g_276);
            }
            l_664[0]++;
            (*g_209) = l_662[3];
            if (p_27.f1)
                break;
        }
        else
        { /* block id: 311 */
            uint8_t l_689 = 0x39L;
            struct S0 ***l_706 = (void*)0;
            struct S0 ****l_705 = &l_706;
            int32_t *l_717 = &g_3;
            for (g_311 = 3; (g_311 >= 0); g_311 -= 1)
            { /* block id: 314 */
                uint32_t l_667 = 0xA4FEFF57L;
                uint32_t *l_680 = &l_406;
                uint32_t **l_679 = &l_680;
                uint8_t *l_685 = &g_144;
                int32_t *l_691 = &l_401;
                const struct S0 ****l_697 = (void*)0;
                int64_t *l_707 = (void*)0;
                int64_t *l_708 = &g_5;
                int16_t *l_709 = (void*)0;
                int16_t *l_710 = (void*)0;
                int16_t *l_711 = (void*)0;
                int16_t **l_713 = (void*)0;
                int16_t ***l_712 = &l_713;
                int16_t ****l_714 = &l_712;
                int16_t ***l_716 = &l_713;
                int16_t ****l_715 = &l_716;
                (*g_690) = (l_667 | (safe_add_func_uint32_t_u_u((((safe_div_func_int8_t_s_s(((safe_add_func_uint64_t_u_u((safe_div_func_uint64_t_u_u((+((safe_div_func_uint8_t_u_u((((((*l_679) = &l_406) != (l_682[8][3][0] = l_681)) > ((void*)0 != &p_27)) , (l_394 = ((*l_685) = ((l_401 = l_400) , (g_683 & (!3UL)))))), (safe_add_func_int16_t_s_s((l_688[0][1][0] , 9L), l_667)))) & p_27.f2)), p_27.f0)), l_667)) >= l_689), g_78)) < l_689) & l_663[2][3][7]), 0xDF71AD2FL)));
                l_691 = &l_663[2][3][7];
                (*l_715) = ((*l_714) = ((safe_mul_func_int8_t_s_s((((*l_685) &= (~(((*l_429) = (&l_663[3][3][5] == (void*)0)) || ((*l_429) ^= l_659)))) ^ (((safe_add_func_uint32_t_u_u(l_650, (l_697 == (((*l_691) = ((safe_lshift_func_int64_t_s_u(g_3, (safe_sub_func_int64_t_s_s((l_663[2][5][5] , ((*l_708) ^= ((((safe_mod_func_uint8_t_u_u(((l_704 != l_705) , 0xDCL), l_689)) , 1L) && (-6L)) == (-1L)))), p_27.f1)))) , 0x0261L)) , &g_328)))) ^ g_141.f2) <= l_403[4][0])), 1UL)) , l_712));
                for (g_125 = 0; (g_125 <= 3); g_125 += 1)
                { /* block id: 331 */
                    int i, j, k;
                    (*g_209) = l_717;
                    l_663[g_125][g_604][(g_311 + 4)] = 1L;
                }
            }
            (*l_717) = l_419;
        }
        for (l_404 = 0; (l_404 <= 5); l_404 += 1)
        { /* block id: 340 */
            int16_t **l_724[10][7] = {{&l_429,(void*)0,&g_555,&g_555,(void*)0,&l_429,&g_555},{&l_429,(void*)0,&g_555,&g_555,(void*)0,&l_429,&g_555},{&l_429,(void*)0,&g_555,&g_555,(void*)0,&l_429,&g_555},{&l_429,(void*)0,&g_555,&g_555,(void*)0,&l_429,&g_555},{&l_429,(void*)0,&g_555,&g_555,(void*)0,&l_429,&g_555},{&l_429,(void*)0,&g_555,&g_555,(void*)0,&l_429,&g_555},{&l_429,(void*)0,&g_555,&g_555,(void*)0,&l_429,&g_555},{&l_429,(void*)0,&g_555,&g_555,&g_555,&g_555,&l_429},{&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&l_429},{&g_555,&g_555,&g_555,&g_555,&g_555,&g_555,&l_429}};
            int32_t l_727 = 0xDAF3A357L;
            int32_t l_731 = 0x7B4652E6L;
            int32_t l_732 = (-1L);
            uint64_t **l_739 = &l_512;
            uint64_t ***l_738 = &l_739;
            uint64_t ****l_737 = &l_738;
            uint16_t *l_759 = &g_760[3][0];
            int i, j;
            if ((*g_312))
            { /* block id: 341 */
                uint64_t l_718[3];
                int i;
                for (i = 0; i < 3; i++)
                    l_718[i] = 4UL;
                (*g_209) = (((((***g_328) , (g_368.f0 <= (l_718[1] == p_27.f1))) && (l_719 == (void*)0)) != ((safe_add_func_uint16_t_u_u((safe_add_func_uint64_t_u_u(1UL, ((l_724[8][4] == ((safe_rshift_func_uint8_t_u_s(0x69L, 2)) , &g_555)) ^ 3L))), l_718[1])) | l_727)) , (*g_209));
            }
            else
            { /* block id: 343 */
                int32_t *l_728 = &l_629;
                int32_t *l_729 = (void*)0;
                int32_t *l_730[5] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
                int i;
                l_734--;
                return p_27.f2;
            }
            (*l_737) = (void*)0;
            l_394 = (safe_add_func_int8_t_s_s((g_368.f0 == p_27.f1), (((safe_rshift_func_uint16_t_u_s((l_659 = g_144), (safe_div_func_uint16_t_u_u(0xD8FAL, (-10L))))) > (((safe_rshift_func_int64_t_s_s((safe_div_func_int8_t_s_s(l_406, (safe_lshift_func_uint16_t_u_u(p_27.f2, 7)))), (safe_div_func_uint16_t_u_u((safe_rshift_func_int8_t_s_s((-1L), 2)), ((*l_759) &= (safe_unary_minus_func_int16_t_s(((safe_add_func_int32_t_s_s(((void*)0 != &g_327), 0x8F7D44D7L)) == p_27.f0)))))))) < g_311) , g_3)) == p_27.f2)));
            if (l_727)
                break;
        }
    }
    return p_27.f0;
}


/* ------------------------------------------ */
/* 
 * reads : g_311 g_8 g_217 g_78 g_328 g_326 g_327 g_3 g_139.f0 g_209 g_210 g_5
 * writes: g_311 g_8 g_217 g_3 g_210 g_5
 */
static struct S1  func_28(int32_t * p_29, uint32_t  p_30, uint8_t  p_31, int64_t * p_32)
{ /* block id: 182 */
    uint64_t l_349 = 0x2C7EC2A867BA3A6BLL;
    int32_t **l_358 = &g_65;
    struct S0 * const l_373 = &g_374[4][5];
    struct S1 l_379 = {88,119,4};
    for (g_311 = 1; (g_311 >= 0); g_311 -= 1)
    { /* block id: 185 */
        struct S1 l_341 = {12,236,5};
        for (g_8 = 0; (g_8 <= 3); g_8 += 1)
        { /* block id: 188 */
            struct S1 l_340 = {77,137,5};
            return l_340;
        }
        return l_341;
    }
    for (g_217 = 0; (g_217 > 22); g_217 = safe_add_func_uint8_t_u_u(g_217, 3))
    { /* block id: 195 */
        uint32_t l_344 = 18446744073709551615UL;
        int32_t l_378 = 0x80E904D7L;
        if (((*p_29) = (l_344 <= ((*p_32) ^= (p_31 & 0xC6A9FD3DL)))))
        { /* block id: 198 */
            int32_t *l_345 = &g_78;
            int32_t *l_346 = &g_3;
            int32_t *l_347 = &g_78;
            int32_t *l_348[9] = {&g_313,&g_78,&g_313,&g_78,&g_313,&g_78,&g_313,&g_78,&g_313};
            struct S0 *l_367 = &g_368;
            struct S0 **l_366 = &l_367;
            struct S0 *** const l_365 = &l_366;
            int i;
            l_349--;
            l_378 |= (((*p_32) = (safe_div_func_uint32_t_u_u((safe_lshift_func_int16_t_s_u((((l_358 != (void*)0) , ((safe_div_func_uint8_t_u_u(((safe_mul_func_int8_t_s_s(((l_365 != &g_326) && (((safe_sub_func_uint16_t_u_u(((g_78 , (safe_mul_func_uint16_t_u_u(65526UL, ((((**g_328) != l_373) & (safe_unary_minus_func_uint32_t_u(((safe_mod_func_int16_t_s_s(0xDCF2L, 65530UL)) , 0UL)))) >= (*p_29))))) , 5UL), 0x4D42L)) , p_30) != p_30)), 255UL)) && g_139.f0), p_30)) ^ (*l_346))) != 0UL), 15)), l_344))) != l_344);
        }
        else
        { /* block id: 202 */
            (*g_209) = (*g_209);
        }
    }
    return l_379;
}


/* ------------------------------------------ */
/* 
 * reads : g_217 g_141.f0
 * writes: g_217
 */
static uint32_t  func_37(struct S1  p_38, struct S1  p_39, uint8_t  p_40)
{ /* block id: 135 */
    uint32_t l_283 = 4294967291UL;
    int32_t *l_292 = &g_78;
    int32_t **l_307[3][3] = {{&g_65,&g_65,&g_65},{&g_65,&g_65,&g_65},{&g_65,&g_65,&g_65}};
    struct S0 *l_320 = (void*)0;
    int32_t l_329 = (-1L);
    int32_t *l_330 = &l_329;
    int32_t l_331 = 0xBD4ED68FL;
    int32_t *l_332 = &g_3;
    int32_t *l_333 = &g_313;
    int32_t *l_334 = &l_329;
    int32_t *l_335[4][5][4] = {{{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329}},{{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329}},{{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329}},{{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329},{&g_78,&l_329,&g_78,&l_329}}};
    int8_t l_336 = 1L;
    uint8_t l_337 = 255UL;
    int i, j, k;
    for (g_217 = 0; (g_217 <= 2); g_217 += 1)
    { /* block id: 138 */
        int64_t *l_303 = &g_5;
        int32_t l_304 = 0xA7034FD7L;
        uint32_t *l_305 = &g_306[5];
        int32_t ** const l_308 = &g_65;
        uint64_t *l_309 = &g_8;
        int32_t *l_310 = &g_311;
    }
    --l_337;
    return g_141.f0;
}


/* ------------------------------------------ */
/* 
 * reads :
 * writes:
 */
static struct S1  func_41(struct S1  p_42, int32_t * p_43, uint64_t  p_44, uint64_t * const  p_45, int16_t  p_46)
{ /* block id: 133 */
    struct S1 l_279[5][4][3] = {{{{78,151,0},{41,24,5},{85,131,4}},{{1,270,4},{44,151,3},{34,209,6}},{{38,198,5},{73,240,1},{10,235,0}},{{84,221,4},{42,245,3},{77,184,1}}},{{{38,198,5},{87,202,7},{15,308,2}},{{1,270,4},{54,42,5},{24,156,2}},{{78,151,0},{43,248,4},{56,218,0}},{{82,357,2},{10,235,0},{87,202,7}}},{{{42,245,3},{10,235,0},{72,41,0}},{{43,248,4},{43,248,4},{38,198,5}},{{85,131,4},{54,42,5},{42,245,3}},{{73,240,1},{87,202,7},{16,309,7}}},{{{43,216,3},{42,245,3},{35,34,1}},{{43,112,4},{73,240,1},{16,309,7}},{{10,235,0},{44,151,3},{42,245,3}},{{56,218,0},{41,24,5},{38,198,5}}},{{{84,19,4},{55,361,0},{72,41,0}},{{16,309,7},{72,41,0},{87,202,7}},{{16,309,7},{56,218,0},{56,218,0}},{{84,19,4},{35,34,1},{24,156,2}}}};
    int i, j, k;
    return l_279[2][3][2];
}


/* ------------------------------------------ */
/* 
 * reads : g_125 g_78 g_268 g_202 g_139.f1 g_210 g_276 g_141
 * writes: g_267 g_209 g_125 g_3 g_268
 */
static struct S1  func_47(uint16_t  p_48, uint32_t  p_49, uint64_t * p_50, int64_t * p_51)
{ /* block id: 124 */
    int32_t ***l_266 = (void*)0;
    const int32_t **l_269 = &g_210[0][1];
    uint8_t *l_272 = &g_125;
    int32_t **l_275 = &g_268;
    (*g_268) = ((safe_mul_func_int64_t_s_s((((g_267 = (void*)0) != (g_209 = l_269)) < (safe_sub_func_uint8_t_u_u(((*l_272)--), g_78))), g_78)) == p_49);
    (*g_276) = ((g_202 , ((*l_275) = (void*)0)) != (g_139.f1 , (*l_269)));
    return g_141;
}


/* ------------------------------------------ */
/* 
 * reads : g_64 g_3 g_61 g_5 g_8 g_78 g_125 g_131 g_139 g_141 g_144 g_133 g_134 g_65 g_190 g_202 g_209 g_233 g_217
 * writes: g_61 g_3 g_125 g_78 g_132 g_144 g_141 g_180 g_202 g_217
 */
static uint64_t * func_52(int32_t * const  p_53, int32_t * p_54, uint32_t  p_55, uint64_t * p_56, int32_t  p_57)
{ /* block id: 6 */
    int32_t ** volatile l_67 = &g_65;/* VOLATILE GLOBAL l_67 */
    int64_t * const l_71 = &g_5;
    int32_t l_76 = 8L;
    int32_t l_81 = 1L;
    uint32_t l_187 = 0xA216054AL;
    int32_t l_197 = 0xF9D2B5ECL;
    int32_t l_199 = 0x72C5E541L;
    int32_t l_201[10][6] = {{3L,(-1L),3L,(-1L),3L,(-1L)},{3L,(-1L),3L,(-1L),3L,(-1L)},{3L,(-1L),3L,(-1L),3L,(-1L)},{3L,(-1L),3L,(-1L),3L,(-1L)},{3L,(-1L),3L,(-1L),3L,(-1L)},{3L,(-1L),3L,(-1L),3L,(-1L)},{3L,(-1L),3L,(-1L),3L,(-1L)},{3L,(-1L),3L,(-1L),3L,(-1L)},{3L,(-1L),3L,(-1L),3L,(-1L)},{3L,(-1L),3L,(-1L),3L,(-1L)}};
    uint64_t *l_216 = &g_217;
    uint8_t *l_218 = &g_144;
    uint8_t l_262[4] = {1UL,1UL,1UL,1UL};
    int i, j;
    for (p_55 = 0; (p_55 != 16); p_55 = safe_add_func_int8_t_s_s(p_55, 2))
    { /* block id: 9 */
        struct S1 l_68 = {22,320,4};
        int32_t *l_79[4] = {&l_76,&l_76,&l_76,&l_76};
        int32_t **l_104 = &g_65;
        int32_t ***l_103 = &l_104;
        uint64_t l_124 = 0x089988BF30E8C00DLL;
        const struct S1 l_140 = {39,194,5};
        int16_t l_200 = (-1L);
        int i;
        l_67 = g_64;
        p_57 |= ((l_68 , ((safe_sub_func_int64_t_s_s(((l_71 == (void*)0) ^ ((*p_54) , ((safe_lshift_func_uint32_t_u_s(4294967295UL, (g_61 != ((safe_rshift_func_int64_t_s_u(g_61, 2)) >= (*p_56))))) >= (g_5 > g_8)))), 0xEFD7F9B64A474477LL)) == l_76)) != l_68.f0);
        if ((!(0x17L || p_57)))
        { /* block id: 12 */
            uint32_t l_82 = 4294967295UL;
            int32_t **l_85 = &l_79[1];
            uint64_t *l_88 = &g_8;
            int32_t **l_102 = &g_65;
            int32_t ***l_101 = &l_102;
            ++l_82;
            (*l_85) = &p_57;
            for (g_61 = 0; (g_61 < 18); g_61 = safe_add_func_int64_t_s_s(g_61, 3))
            { /* block id: 17 */
                return l_88;
            }
            for (g_61 = 0; (g_61 == 27); g_61 = safe_add_func_int32_t_s_s(g_61, 2))
            { /* block id: 22 */
                int32_t ****l_105 = &l_103;
                int32_t l_113[4] = {0x229496F1L,0x229496F1L,0x229496F1L,0x229496F1L};
                int i;
                for (g_3 = 7; (g_3 != 6); g_3--)
                { /* block id: 25 */
                    for (l_81 = 12; (l_81 != 2); l_81--)
                    { /* block id: 28 */
                        return &g_8;
                    }
                    for (l_82 = (-25); (l_82 > 5); l_82++)
                    { /* block id: 33 */
                        return p_56;
                    }
                    l_76 ^= (*p_54);
                }
                if ((((((safe_lshift_func_int64_t_s_s((safe_mul_func_int64_t_s_s((((p_57 , (l_101 == ((*l_105) = l_103))) & (g_125 |= (((safe_mul_func_uint8_t_u_u((**l_85), ((+(safe_lshift_func_int64_t_s_u(((safe_sub_func_int8_t_s_s((p_56 != (void*)0), l_113[3])) | (safe_mul_func_uint16_t_u_u((safe_mul_func_uint32_t_u_u(((safe_add_func_int8_t_s_s((safe_rshift_func_int64_t_s_u(0xB866B6F1F252ACEBLL, (safe_div_func_int64_t_s_s(g_61, l_113[3])))), g_5)) , 0x4353CEB4L), g_78)), p_57))), 16))) || p_55))) > l_81) , l_124))) , 2L), p_57)), 44)) || l_113[0]) > p_57) > g_61) & 8L))
                { /* block id: 40 */
                    int8_t l_128 = 1L;
                    uint64_t *l_129 = (void*)0;
                    for (p_57 = 0; (p_57 == (-25)); p_57 = safe_sub_func_int64_t_s_s(p_57, 9))
                    { /* block id: 43 */
                        (*p_54) |= 0x44380E06L;
                        l_128 = (*p_53);
                        return l_129;
                    }
                }
                else
                { /* block id: 48 */
                    int64_t l_130 = 0xFEFF19821B11E678LL;
                    (**l_85) = (l_130 >= 4294967293UL);
                }
                (*g_131) = &l_103;
                return p_56;
            }
        }
        else
        { /* block id: 54 */
            int32_t **l_135 = &l_79[2];
            uint8_t *l_142 = (void*)0;
            uint8_t *l_143 = &g_144;
            int32_t *****l_146[5];
            int32_t l_184[4];
            struct S1 l_195[5][6] = {{{58,304,3},{58,304,3},{53,241,1},{77,208,5},{53,241,1},{58,304,3}},{{53,241,1},{27,359,1},{77,208,5},{77,208,5},{27,359,1},{53,241,1}},{{58,304,3},{53,241,1},{77,208,5},{53,241,1},{58,304,3},{58,304,3}},{{60,236,2},{53,241,1},{53,241,1},{60,236,2},{27,359,1},{60,236,2}},{{60,236,2},{27,359,1},{60,236,2},{53,241,1},{53,241,1},{60,236,2}}};
            int32_t l_198 = 0L;
            int i, j;
            for (i = 0; i < 5; i++)
                l_146[i] = &g_132;
            for (i = 0; i < 4; i++)
                l_184[i] = 0x3DD8F0E9L;
            (*l_135) = (void*)0;
            for (p_57 = 0; (p_57 <= 1); p_57 += 1)
            { /* block id: 58 */
                return p_56;
            }
            if ((((*l_143) &= ((g_125 < (safe_lshift_func_int32_t_s_s(((p_55 && (~p_55)) || g_5), 3))) < ((((g_139 , ((void*)0 == p_56)) & (l_140 , ((((g_141 , g_8) , 1L) >= 0x86L) , 0x70BFA85FE053DA94LL))) >= l_81) == p_55))) < 0xAAL))
            { /* block id: 62 */
                (*p_53) = 1L;
            }
            else
            { /* block id: 64 */
                struct S1 l_154 = {54,256,0};
                int32_t *l_163[3];
                int32_t l_181 = 0x249FC326L;
                int32_t l_185 = 0x35CC15AFL;
                struct S1 *l_196[2][4][7] = {{{&l_195[3][2],&l_154,&l_195[3][2],&l_195[3][2],&l_154,&l_195[3][2],&l_195[3][2]},{&l_154,&l_154,&l_195[0][4],&l_154,&l_154,&l_195[0][4],&l_154},{&l_154,&l_195[3][2],&l_195[3][2],&l_154,&l_195[3][2],&l_195[3][2],&l_154},{&l_195[3][2],&l_154,&l_195[3][2],&l_195[3][2],&l_154,&l_195[3][2],&l_195[3][2]}},{{&l_154,&l_154,&l_195[0][4],&l_154,&l_154,&l_195[0][4],&l_154},{&l_154,&l_195[3][2],&l_195[3][2],&l_154,&l_195[3][2],&l_195[3][2],&l_154},{&l_195[3][2],&l_154,&l_195[3][2],&l_195[3][2],&l_154,&l_195[3][2],&l_195[3][2]},{&l_154,&l_154,&l_195[0][4],&l_154,&l_154,&l_195[0][4],&l_154}}};
                int i, j, k;
                for (i = 0; i < 3; i++)
                    l_163[i] = &g_61;
                for (g_78 = 0; (g_78 <= 1); g_78 += 1)
                { /* block id: 67 */
                    int16_t l_153 = 0xADF5L;
                    int32_t l_182 = (-4L);
                    int8_t l_186 = 0x54L;
                    if ((p_54 == (**g_133)))
                    { /* block id: 68 */
                        int32_t *****l_145 = &g_132;
                        struct S1 *l_155 = &g_141;
                        l_146[0] = l_145;
                        (*p_54) = ((g_144 > (((safe_rshift_func_uint16_t_u_u(((((safe_mul_func_uint16_t_u_u(g_78, ((g_141 , p_55) , (((1L > (((0x14C7L <= (((safe_sub_func_int16_t_s_s(0L, 0xC860L)) > 0x6158L) | l_76)) , &g_132) != &g_132)) == l_153) | p_55)))) , p_57) || (*p_54)) || l_76), 8)) , (void*)0) == (void*)0)) > (-1L));
                        (*l_155) = l_154;
                        (*p_54) |= (safe_lshift_func_int16_t_s_s((g_8 | g_141.f2), 14));
                    }
                    else
                    { /* block id: 73 */
                        uint64_t *l_158[6] = {&l_124,&g_8,&g_8,&l_124,&g_8,&g_8};
                        int i;
                        return &g_8;
                    }
                    l_181 ^= (safe_add_func_int16_t_s_s((((safe_mod_func_uint8_t_u_u((((((((**g_133) == l_163[2]) > (safe_add_func_uint16_t_u_u((safe_div_func_uint32_t_u_u((safe_mul_func_uint32_t_u_u((p_53 != (**g_133)), (safe_rshift_func_uint8_t_u_s(((-1L) <= ((p_56 != &l_124) && ((safe_lshift_func_int32_t_s_u((safe_lshift_func_uint64_t_u_s(((*p_56) | (safe_lshift_func_uint64_t_u_u((g_180 = ((safe_mul_func_uint8_t_u_u((p_55 >= (-3L)), p_55)) > g_61)), 21))), g_125)), 1)) & p_57))), 7)))), g_139.f0)), (-8L)))) , 0x440B9AA1BD0BA192LL) > 0x3ED9FA11705F15DFLL) , l_76) != 0x1E5DE67BC55C7163LL), p_55)) != p_57) | (*p_53)), g_141.f1));
                    for (l_124 = 0; (l_124 <= 3); l_124 += 1)
                    { /* block id: 80 */
                        int32_t l_183[1][1];
                        int i, j, k;
                        for (i = 0; i < 1; i++)
                        {
                            for (j = 0; j < 1; j++)
                                l_183[i][j] = (-8L);
                        }
                        l_79[(g_78 + 2)] = &l_181;
                        ++l_187;
                        (*p_54) = ((g_190 , (safe_rshift_func_uint8_t_u_u(0x43L, 3))) <= (safe_mod_func_int16_t_s_s(g_8, p_55)));
                        if ((*p_53))
                            continue;
                    }
                }
                g_141 = l_195[3][2];
            }
            g_202--;
        }
        for (g_202 = 0; (g_202 <= 3); g_202 += 1)
        { /* block id: 93 */
            const int64_t l_215 = 0xBC0F596ABB34E193LL;
            int i, j;
            l_201[(g_202 + 6)][g_202] ^= ((g_139.f0 ^ (safe_add_func_uint32_t_u_u(((safe_div_func_int32_t_s_s(((g_209 != (void*)0) != (safe_rshift_func_int16_t_s_u(0x98DAL, ((4L == (safe_mul_func_int8_t_s_s(p_55, 0x34L))) < ((&l_201[7][5] == (void*)0) < 0x28L))))), l_215)) & 1UL), p_55))) , (*p_53));
            l_79[g_202] = &p_57;
            if ((*p_53))
                break;
        }
    }
    if ((((((*l_216) = g_139.f1) > (l_76 ^ p_57)) > ((*l_218) = l_76)) , ((safe_lshift_func_int8_t_s_s(p_55, ((-1L) >= (safe_mul_func_uint32_t_u_u(p_57, ((safe_mod_func_uint8_t_u_u(((safe_div_func_int32_t_s_s((g_141 , (+(((*p_54) ^= (safe_sub_func_uint64_t_u_u((*p_56), p_55))) < p_55))), l_81)) < l_197), 0xEEL)) != 0xF287FA17L)))))) > p_55)))
    { /* block id: 102 */
        int8_t l_232[1];
        int32_t *****l_236 = &g_132;
        const int32_t ** const l_242 = &g_210[0][1];
        int i;
        for (i = 0; i < 1; i++)
            l_232[i] = 6L;
        for (g_144 = 15; (g_144 >= 48); ++g_144)
        { /* block id: 105 */
            const int16_t l_241 = 7L;
            (*g_233) ^= ((*p_53) &= l_232[0]);
            if (((safe_add_func_uint8_t_u_u((((&g_132 != l_236) != ((safe_sub_func_int64_t_s_s(0L, (((safe_mul_func_int16_t_s_s(((g_141.f2 == 0xB07FL) <= 0x8BL), l_201[7][5])) != (l_241 ^ (((l_242 != (void*)0) || (*p_53)) != 0x3F63L))) != l_187))) <= l_241)) < l_199), 1UL)) , (-10L)))
            { /* block id: 108 */
                struct S1 l_243 = {18,249,7};
                l_243 = g_141;
                (*p_54) = (p_57 < l_81);
            }
            else
            { /* block id: 111 */
                for (p_57 = (-26); (p_57 == (-3)); p_57 = safe_add_func_uint16_t_u_u(p_57, 1))
                { /* block id: 114 */
                    struct S1 *l_255[4] = {(void*)0,(void*)0,(void*)0,(void*)0};
                    int i;
                    (*p_54) = ((p_57 , (*p_54)) >= ((safe_sub_func_int32_t_s_s((~(safe_mod_func_int16_t_s_s(((safe_add_func_int32_t_s_s((safe_mod_func_uint32_t_u_u(((void*)0 != l_255[3]), (safe_lshift_func_uint8_t_u_s((safe_mod_func_int16_t_s_s((g_141 , l_201[1][5]), (safe_lshift_func_int16_t_s_s(((g_139 , (p_55 && ((1UL && g_8) & l_262[3]))) && g_217), 13)))), 1)))), 0x18301D25L)) > 0x97CDL), 0xCE67L))), 0x4A25291BL)) , p_55));
                }
            }
        }
        return l_216;
    }
    else
    { /* block id: 120 */
        return p_56;
    }
}




/* ---------------------------------------- */
int main (int argc, char* argv[])
{
    int i, j, k;
    int print_hash_value = 0;
    if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
    platform_main_begin();
    crc32_gentab();
    func_1();
    transparent_crc(g_3, "g_3", print_hash_value);
    transparent_crc(g_5, "g_5", print_hash_value);
    transparent_crc(g_8, "g_8", print_hash_value);
    transparent_crc(g_61, "g_61", print_hash_value);
    transparent_crc(g_78, "g_78", print_hash_value);
    transparent_crc(g_125, "g_125", print_hash_value);
    transparent_crc(g_139.f0, "g_139.f0", print_hash_value);
    transparent_crc(g_139.f1, "g_139.f1", print_hash_value);
    transparent_crc(g_141.f0, "g_141.f0", print_hash_value);
    transparent_crc(g_141.f1, "g_141.f1", print_hash_value);
    transparent_crc(g_141.f2, "g_141.f2", print_hash_value);
    transparent_crc(g_144, "g_144", print_hash_value);
    transparent_crc(g_180, "g_180", print_hash_value);
    transparent_crc(g_190.f0, "g_190.f0", print_hash_value);
    transparent_crc(g_190.f1, "g_190.f1", print_hash_value);
    transparent_crc(g_202, "g_202", print_hash_value);
    transparent_crc(g_217, "g_217", print_hash_value);
    for (i = 0; i < 9; i++)
    {
        transparent_crc(g_306[i], "g_306[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_311, "g_311", print_hash_value);
    transparent_crc(g_313, "g_313", print_hash_value);
    transparent_crc(g_368.f0, "g_368.f0", print_hash_value);
    transparent_crc(g_368.f1, "g_368.f1", print_hash_value);
    for (i = 0; i < 5; i++)
    {
        for (j = 0; j < 8; j++)
        {
            transparent_crc(g_374[i][j].f0, "g_374[i][j].f0", print_hash_value);
            transparent_crc(g_374[i][j].f1, "g_374[i][j].f1", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    for (i = 0; i < 9; i++)
    {
        for (j = 0; j < 6; j++)
        {
            transparent_crc(g_431[i][j], "g_431[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_436.f0, "g_436.f0", print_hash_value);
    transparent_crc(g_436.f1, "g_436.f1", print_hash_value);
    transparent_crc(g_504, "g_504", print_hash_value);
    for (i = 0; i < 6; i++)
    {
        transparent_crc(g_545[i], "g_545[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_604, "g_604", print_hash_value);
    transparent_crc(g_623.f0, "g_623.f0", print_hash_value);
    transparent_crc(g_623.f1, "g_623.f1", print_hash_value);
    transparent_crc(g_628, "g_628", print_hash_value);
    transparent_crc(g_649.f0, "g_649.f0", print_hash_value);
    transparent_crc(g_649.f1, "g_649.f1", print_hash_value);
    transparent_crc(g_683, "g_683", print_hash_value);
    for (i = 0; i < 8; i++)
    {
        for (j = 0; j < 2; j++)
        {
            transparent_crc(g_760[i][j], "g_760[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_764.f0, "g_764.f0", print_hash_value);
    transparent_crc(g_764.f1, "g_764.f1", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        transparent_crc(g_768[i], "g_768[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 6; i++)
    {
        transparent_crc(g_782[i], "g_782[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 9; i++)
    {
        transparent_crc(g_791[i].f0, "g_791[i].f0", print_hash_value);
        transparent_crc(g_791[i].f1, "g_791[i].f1", print_hash_value);
        transparent_crc(g_791[i].f2, "g_791[i].f2", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_794, "g_794", print_hash_value);
    transparent_crc(g_808, "g_808", print_hash_value);
    transparent_crc(g_847, "g_847", print_hash_value);
    transparent_crc(g_876, "g_876", print_hash_value);
    transparent_crc(g_904, "g_904", print_hash_value);
    transparent_crc(g_990.f0, "g_990.f0", print_hash_value);
    transparent_crc(g_990.f1, "g_990.f1", print_hash_value);
    transparent_crc(g_1052, "g_1052", print_hash_value);
    transparent_crc(g_1080, "g_1080", print_hash_value);
    transparent_crc(g_1186.f0, "g_1186.f0", print_hash_value);
    transparent_crc(g_1186.f1, "g_1186.f1", print_hash_value);
    transparent_crc(g_1218, "g_1218", print_hash_value);
    transparent_crc(g_1234.f0, "g_1234.f0", print_hash_value);
    transparent_crc(g_1234.f1, "g_1234.f1", print_hash_value);
    platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
    return 0;
}

/************************ statistics *************************
XXX max struct depth: 1
breakdown:
   depth: 0, occurrence: 260
   depth: 1, occurrence: 31
XXX total union variables: 0

XXX non-zero bitfields defined in structs: 3
XXX zero bitfields defined in structs: 0
XXX const bitfields defined in structs: 0
XXX volatile bitfields defined in structs: 0
XXX structs with bitfields in the program: 27
breakdown:
   indirect level: 0, occurrence: 24
   indirect level: 1, occurrence: 1
   indirect level: 2, occurrence: 2
XXX full-bitfields structs in the program: 24
breakdown:
   indirect level: 0, occurrence: 24
XXX times a bitfields struct's address is taken: 17
XXX times a bitfields struct on LHS: 7
XXX times a bitfields struct on RHS: 33
XXX times a single bitfield on LHS: 3
XXX times a single bitfield on RHS: 127

XXX max expression depth: 52
breakdown:
   depth: 1, occurrence: 165
   depth: 2, occurrence: 39
   depth: 3, occurrence: 4
   depth: 4, occurrence: 3
   depth: 5, occurrence: 3
   depth: 6, occurrence: 1
   depth: 9, occurrence: 1
   depth: 13, occurrence: 2
   depth: 14, occurrence: 3
   depth: 15, occurrence: 1
   depth: 17, occurrence: 1
   depth: 18, occurrence: 2
   depth: 19, occurrence: 4
   depth: 20, occurrence: 1
   depth: 21, occurrence: 1
   depth: 22, occurrence: 1
   depth: 24, occurrence: 1
   depth: 25, occurrence: 1
   depth: 27, occurrence: 3
   depth: 28, occurrence: 2
   depth: 31, occurrence: 2
   depth: 32, occurrence: 1
   depth: 35, occurrence: 1
   depth: 37, occurrence: 1
   depth: 39, occurrence: 1
   depth: 52, occurrence: 1

XXX total number of pointers: 289

XXX times a variable address is taken: 776
XXX times a pointer is dereferenced on RHS: 87
breakdown:
   depth: 1, occurrence: 74
   depth: 2, occurrence: 12
   depth: 3, occurrence: 1
XXX times a pointer is dereferenced on LHS: 131
breakdown:
   depth: 1, occurrence: 129
   depth: 2, occurrence: 2
XXX times a pointer is compared with null: 23
XXX times a pointer is compared with address of another variable: 9
XXX times a pointer is compared with another pointer: 3
XXX times a pointer is qualified to be dereferenced: 4219

XXX max dereference level: 4
breakdown:
   level: 0, occurrence: 0
   level: 1, occurrence: 399
   level: 2, occurrence: 38
   level: 3, occurrence: 6
   level: 4, occurrence: 2
XXX number of pointers point to pointers: 107
XXX number of pointers point to scalars: 160
XXX number of pointers point to structs: 22
XXX percent of pointers has null in alias set: 25.3
XXX average alias set size: 1.34

XXX times a non-volatile is read: 854
XXX times a non-volatile is write: 412
XXX times a volatile is read: 67
XXX    times read thru a pointer: 10
XXX times a volatile is write: 20
XXX    times written thru a pointer: 1
XXX times a volatile is available for access: 2.76e+03
XXX percentage of non-volatile access: 93.6

XXX forward jumps: 0
XXX backward jumps: 2

XXX stmts: 164
XXX max block depth: 5
breakdown:
   depth: 0, occurrence: 30
   depth: 1, occurrence: 24
   depth: 2, occurrence: 43
   depth: 3, occurrence: 31
   depth: 4, occurrence: 17
   depth: 5, occurrence: 19

XXX percentage a fresh-made variable is used: 16.6
XXX percentage an existing variable is used: 83.4
FYI: the random generator makes assumptions about the integer size. See platform.info for more details.
********************* end of statistics **********************/

/* Found checksum difference between compiler implementations */
/* gcc -O0 : B17A9216 */
/* gcc -O1 : B17A9216 */
/* gcc -O2 : B17A9216 */
/* gcc -Os : 6DB06DFA */
/* gcc -O3 : B17A9216 */
/* clang -O0 : B17A9216 */
/* clang -O1 : B17A9216 */
/* clang -O2 : B17A9216 */
/* clang -Os : B17A9216 */
/* clang -O3 : B17A9216 */
/* please refer to http://embed.cs.utah.edu/csmith/using.html on how to report a bug */
